mirror of
https://github.com/mr-vercetti/docker-steamcmd.git
synced 2025-01-18 19:35:33 +01:00
Remove unnecessary variables and add output dir
This commit is contained in:
parent
3b3d0d0e24
commit
5b5d16b81e
13
Dockerfile
13
Dockerfile
@ -10,18 +10,19 @@ RUN dpkg --add-architecture i386 && \
|
|||||||
locale-gen --no-purge en_US.UTF-8 && \
|
locale-gen --no-purge en_US.UTF-8 && \
|
||||||
apt-get clean && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
|
apt-get clean && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
|
||||||
|
|
||||||
|
# General vars
|
||||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8
|
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8
|
||||||
ENV APP_DIR="/app"
|
ENV STEAMCMD_DIR="/steam/steamcmd"
|
||||||
ENV STEAMCMD_DIR="${APP_DIR}/Steam/steamcmd"
|
ENV OUTPUT_DIR="/output"
|
||||||
|
|
||||||
# Set up user environment
|
# Set up user environment
|
||||||
RUN groupadd -r abc && \
|
RUN groupadd -r abc && \
|
||||||
useradd -d ${APP_DIR} -r -g abc abc && \
|
useradd -d ${STEAMCMD_DIR} -r -g abc abc && \
|
||||||
mkdir -p ${STEAMCMD_DIR} && \
|
mkdir -p ${STEAMCMD_DIR} ${OUTPUT_DIR} && \
|
||||||
chown -R abc:abc ${APP_DIR}
|
chown -R abc:abc ${STEAMCMD_DIR} ${OUTPUT_DIR}
|
||||||
|
|
||||||
USER abc
|
USER abc
|
||||||
WORKDIR ${APP_DIR}
|
WORKDIR ${STEAMCMD_DIR}
|
||||||
|
|
||||||
# Download and update steamcmd
|
# Download and update steamcmd
|
||||||
RUN wget -qO- http://media.steampowered.com/installer/steamcmd_linux.tar.gz | tar xz -C ${STEAMCMD_DIR} && \
|
RUN wget -qO- http://media.steampowered.com/installer/steamcmd_linux.tar.gz | tar xz -C ${STEAMCMD_DIR} && \
|
||||||
|
Loading…
Reference in New Issue
Block a user