Update Dockerfile

This commit is contained in:
2019-04-24 09:33:14 +02:00
committed by GitHub
parent 9bb943e44b
commit fe83a42bab

View File

@@ -15,12 +15,13 @@ ENV GAME_PORT=27015
ENV VALIDATE=""
ENV UID=99
ENV GID=100
ENV USERNAME="steamusername"
ENV PASSWRD="steampassword"
ENV USERNAME=""
ENV PASSWRD=""
RUN mkdir $DATA_DIR
RUN mkdir $STEAMCMD_DIR
RUN mkdir $SERVER_DIR
RUN mkdir -p $DATA_DIR/".local/share/Arma 3" && mkdir -p $DATA_DIR/".local/share/Arma 3 - Other Profiles"
RUN useradd -d $DATA_DIR -s /bin/bash --uid $UID --gid $GID steam
RUN chown -R steam $DATA_DIR
@@ -29,6 +30,10 @@ RUN ulimit -n 2048
ADD /scripts/ /opt/scripts/
RUN chmod -R 770 /opt/scripts/
RUN chown -R steam /opt/scripts
RUN chmod -R 770 $DATA_DIR/".local/share/Arma 3"
RUN chown -R steam $DATA_DIR/".local/share/Arma 3"
RUN chmod -R 770 $DATA_DIR/".local/share/Arma 3 - Other Profiles"
RUN chown -R steam $DATA_DIR/".local/share/Arma 3 - Other Profiles"
USER steam