From 2fd1cbbe2b22565d5c2e5f16ae8b8bddfa746274 Mon Sep 17 00:00:00 2001 From: ich777 Date: Tue, 25 Feb 2020 13:50:42 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9EDockerfile=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index baf51ba..4bceda4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,17 +18,16 @@ ENV DOSBOX_V="wdosbox-nosync" ENV UMASK=000 ENV UID=99 ENV GID=100 +ENV DATA_PERM=770 +ENV USER="jsdos" RUN mkdir $SERVER_DIR && \ - useradd -d $SERVER_DIR -s /bin/bash --uid $UID --gid $GID jsdos && \ - chown -R jsdos $SERVER_DIR && \ + useradd -d $SERVER_DIR -s /bin/bash $USER && \ + chown -R $USER $SERVER_DIR && \ ulimit -n 2048 ADD /scripts/ /opt/scripts/ -RUN chmod -R 770 /opt/scripts/ && \ - chown -R jsdos /opt/scripts/ - -USER jsdos +RUN chmod -R 770 /opt/scripts/ #Server Start -ENTRYPOINT ["/opt/scripts/start-server.sh"] \ No newline at end of file +ENTRYPOINT ["/opt/scripts/start.sh"] \ No newline at end of file