diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..73be40e --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +.git +/docker-compose.yml +/LICENSE +/README.md +/TODO.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5e373b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/scripts + diff --git a/Dockerfile b/Dockerfile index 5281e38..0228b79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/xaseco/Aseco.sh b/xaseco/Aseco.sh index 43e7681..ce78be1 100644 --- a/xaseco/Aseco.sh +++ b/xaseco/Aseco.sh @@ -1,4 +1,3 @@ #!/bin/sh -cd /home/tmn/xaseco php aseco.php TMN aseco.log 2>&1 & echo $!