mirror of
https://github.com/AsgardEternal/SteamCMDDocker.git
synced 2024-12-30 15:19:18 -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"
|
LABEL maintainer="price@orion-technologies.io"
|
||||||
|
|
||||||
ENV USER="steam"
|
ENV STEAM_USER="steam"
|
||||||
ENV USER_HOME="/home/${USER}"
|
ENV STEAM_HOME="/home/${STEAM_USER}"
|
||||||
ENV STEAM_CMD_INSTALL_DIR="${USER_HOME}/Steam/steamcmd"
|
ENV STEAM_CMD_INSTALL_DIR="${STEAM_HOME}/Steam/steamcmd"
|
||||||
ARG steam_cmd_bin_reflection="${USER_HOME}/.local/bin"
|
ARG steam_cmd_bin_reflection="${STEAM_HOME}/.local/bin"
|
||||||
|
|
||||||
RUN <<__EOR__
|
RUN <<__EOR__
|
||||||
apt-get update
|
apt-get update
|
||||||
@ -21,8 +21,8 @@ apt-get install -y --no-install-suggests --no-install-recommends \
|
|||||||
git \
|
git \
|
||||||
rsync
|
rsync
|
||||||
|
|
||||||
useradd -m "${USER}"
|
useradd -m "${STEAM_USER}"
|
||||||
su - "${USER}" << __EOC__
|
su - "${STEAM_USER}" << __EOC__
|
||||||
(
|
(
|
||||||
|
|
||||||
mkdir -p "${STEAM_CMD_INSTALL_DIR}"
|
mkdir -p "${STEAM_CMD_INSTALL_DIR}"
|
||||||
@ -44,4 +44,4 @@ rm -rf /var/lib/apt/lists/*
|
|||||||
__EOR__
|
__EOR__
|
||||||
|
|
||||||
FROM build as prod
|
FROM build as prod
|
||||||
WORKDIR "${USER_HOME}"
|
WORKDIR "${STEAM_HOME}"
|
||||||
|
Loading…
Reference in New Issue
Block a user