From 879a543a339c6d876189113e58eefd1197381d06 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 5 Oct 2024 15:41:48 -0500 Subject: [PATCH] refactor: improve naming of home vars --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0cd6402..8295c76 100644 --- a/Dockerfile +++ b/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}"