several changeseveral changess

This commit is contained in:
Hendrik Boll 2019-05-11 04:11:24 +02:00
parent 01af10784e
commit a58e97e7e5
4 changed files with 13 additions and 7 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
.git
/docker-compose.yml
/LICENSE
/README.md
/TODO.md

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/scripts

View File

@ -1,16 +1,16 @@
FROM fanyx/php:5.6
COPY /tmserver:/opt/tmserver
COPY /xaseco:/opt/xaseco
RUN apt update \
&& useradd -M --uid 1000 trackmania \
&& mkdir /opt/tmserver /opt/xaseco \
&& groupadd trackmania \
&& useradd -M -g trackmania trackmania \
&& chown -R trackmania:trackmania /opt/tmserver \
&& chown -R trackmania:trackmania /opt/xaseco
USER trackmania
COPY /tmserver:/opt/tmserver
COPY /xaseco:/opt/xaseco
WORKDIR /opt/tmserver
ENTRYPOINT ["./tmserver"]
CMD ["start", "tmserver"]

View File

@ -1,4 +1,3 @@
#!/bin/sh
cd /home/tmn/xaseco
php aseco.php TMN </dev/null >aseco.log 2>&1 &
echo $!