mirror of
https://github.com/AsgardEternal/SteamCMDDocker.git
synced 2024-12-28 09:39:19 -06:00
refactor: improve naming of home vars
This commit is contained in:
parent
5e7dda7fd1
commit
879a543a33
14
Dockerfile
14
Dockerfile
@ -4,10 +4,10 @@ FROM debian:bookworm-slim AS build
|
||||
|
||||
LABEL maintainer="price@orion-technologies.io"
|
||||
|
||||
ENV USER="steam"
|
||||
ENV USER_HOME="/home/${USER}"
|
||||
ENV STEAM_CMD_INSTALL_DIR="${USER_HOME}/Steam/steamcmd"
|
||||
ARG steam_cmd_bin_reflection="${USER_HOME}/.local/bin"
|
||||
ENV STEAM_USER="steam"
|
||||
ENV STEAM_HOME="/home/${STEAM_USER}"
|
||||
ENV STEAM_CMD_INSTALL_DIR="${STEAM_HOME}/Steam/steamcmd"
|
||||
ARG steam_cmd_bin_reflection="${STEAM_HOME}/.local/bin"
|
||||
|
||||
RUN <<__EOR__
|
||||
apt-get update
|
||||
@ -21,8 +21,8 @@ apt-get install -y --no-install-suggests --no-install-recommends \
|
||||
git \
|
||||
rsync
|
||||
|
||||
useradd -m "${USER}"
|
||||
su - "${USER}" << __EOC__
|
||||
useradd -m "${STEAM_USER}"
|
||||
su - "${STEAM_USER}" << __EOC__
|
||||
(
|
||||
|
||||
mkdir -p "${STEAM_CMD_INSTALL_DIR}"
|
||||
@ -44,4 +44,4 @@ rm -rf /var/lib/apt/lists/*
|
||||
__EOR__
|
||||
|
||||
FROM build as prod
|
||||
WORKDIR "${USER_HOME}"
|
||||
WORKDIR "${STEAM_HOME}"
|
||||
|
Loading…
Reference in New Issue
Block a user