„Dockerfile“ ändern

This commit is contained in:
2020-02-25 14:19:33 +01:00
parent d58be861bd
commit 7b057513e2

View File

@@ -19,19 +19,18 @@ ENV UID=99
ENV GID=100
ENV USERNAME=""
ENV PASSWRD=""
ENV USER="steam"
ENV DATA_PERM=770
RUN mkdir $DATA_DIR && \
mkdir $STEAMCMD_DIR && \
mkdir $SERVER_DIR && \
useradd -d $DATA_DIR -s /bin/bash --uid $UID --gid $GID steam && \
chown -R steam $DATA_DIR && \
useradd -d $DATA_DIR -s /bin/bash $USER && \
chown -R $USER $DATA_DIR && \
ulimit -n 2048
ADD /scripts/ /opt/scripts/
RUN chmod -R 770 /opt/scripts/ && \
chown -R steam /opt/scripts
USER steam
RUN chmod -R 770 /opt/scripts/
#Server Start
ENTRYPOINT ["/opt/scripts/start-server.sh"]
ENTRYPOINT ["/opt/scripts/start.sh"]