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
ENV TMDIR=/tmserver
RUN apt update \
&& useradd -M --uid 1000 trackmania \
&& mkdir $TMDIR \
&& chown -R trackmania:trackmania $TMDIR
EXPOSE 2351 2351/udp 3451 3451/udp 5001 5001/udp
&& mkdir /opt/tmserver /opt/xaseco \
&& chown -R trackmania:trackmania /opt/tmserver \
&& chown -R trackmania:trackmania /opt/xaseco
USER trackmania
VOLUME /tmserver:/tmserver
WORKDIR /tmserver
ENTRYPOINT
COPY /tmserver:/opt/tmserver
COPY /xaseco:/opt/xaseco
WORKDIR /opt/tmserver
ENTRYPOINT ["./tmserver"]