Update Dockerfile

This commit is contained in:
ryluth 2019-09-18 08:21:11 +02:00 committed by GitHub
parent 3d3bbfd7bd
commit 79cca1eb1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -2,8 +2,8 @@ FROM debian:buster-slim
RUN mkdir /opt/tmserver RUN mkdir /opt/tmserver
COPY tmserver/ /opt/tmserver COPY tmserver/ /opt/tmserver/
COPY entrypoint-tmserver.sh /opt/tmserver COPY entrypoint-tmserver.sh /opt/tmserver/
RUN apt update \ RUN apt update \
&& apt install pwgen gettext-base && apt install pwgen gettext-base
@ -11,7 +11,6 @@ RUN apt update \
RUN groupadd trackmania RUN groupadd trackmania
RUN useradd -M -g trackmania trackmania RUN useradd -M -g trackmania trackmania
RUN chown -R trackmania:trackmania /opt/tmserver RUN chown -R trackmania:trackmania /opt/tmserver
RUN chown trackmania:trackmania /opt/tmserver/entrypoint-tmserver.sh
USER trackmania USER trackmania
WORKDIR /opt/tmserver WORKDIR /opt/tmserver