Cleaned up Dockerfile because of recent changes

This commit is contained in:
Hendrik Boll 2019-05-11 00:33:13 +02:00
parent cce43874dc
commit 9fafab2cf7
1 changed files with 10 additions and 9 deletions

View File

@ -1,15 +1,16 @@
FROM fanyx/php:5.6 FROM fanyx/php:5.6
ENV TMDIR=/tmserver
RUN apt update \ RUN apt update \
&& useradd -M --uid 1000 trackmania \ && useradd -M --uid 1000 trackmania \
&& mkdir $TMDIR \ && mkdir /opt/tmserver /opt/xaseco \
&& chown -R trackmania:trackmania $TMDIR && chown -R trackmania:trackmania /opt/tmserver \
&& chown -R trackmania:trackmania /opt/xaseco
EXPOSE 2351 2351/udp 3451 3451/udp 5001 5001/udp
USER trackmania USER trackmania
VOLUME /tmserver:/tmserver COPY /tmserver:/opt/tmserver
WORKDIR /tmserver COPY /xaseco:/opt/xaseco
ENTRYPOINT
WORKDIR /opt/tmserver
ENTRYPOINT ["./tmserver"]