„Dockerfile“ ändern

This commit is contained in:
2020-02-25 13:50:42 +01:00
parent cbd98ad131
commit 2fd1cbbe2b

View File

@@ -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"]
ENTRYPOINT ["/opt/scripts/start.sh"]