docker-tmserver/Dockerfile

18 lines
426 B
Docker

FROM fanyx/php:5.6
COPY tmserver/ /opt/
COPY xaseco/ /opt/
COPY ./entrypoint.sh /
RUN apt update \
&& apt install pwgen
RUN groupadd trackmania
RUN useradd -M -g trackmania trackmania
RUN chown -R trackmania:trackmania /opt/tmserver
RUN chown -R trackmania:trackmania /opt/xaseco
RUN chown trackmania:trackmania /entrypoint.sh
USER trackmania
WORKDIR /opt/tmserver
CMD ["/bin/bash", "/entrypoint.sh", "start", "tmserver"]