2022-06-26 17:55:35 +02:00
|
|
|
FROM php:5.6-alpine
|
|
|
|
ARG S6_OVERLAY_VERSION=3.1.1.1
|
2019-05-11 00:23:36 +02:00
|
|
|
|
2022-06-26 17:55:35 +02:00
|
|
|
RUN apk add --no-cache pwgen gettext xmlstarlet bash xz
|
|
|
|
RUN docker-php-ext-install mysql
|
2019-09-17 19:40:48 +02:00
|
|
|
|
2022-06-26 17:55:35 +02:00
|
|
|
COPY tmserver/ /var/lib/tmserver
|
|
|
|
COPY xaseco/ /var/lib/xaseco
|
2019-09-17 19:40:48 +02:00
|
|
|
|
2022-06-26 17:55:35 +02:00
|
|
|
RUN addgroup -S trackmania && adduser -D -H -S trackmania -G trackmania
|
|
|
|
RUN chown -R trackmania:trackmania /var/lib/tmserver /var/lib/xaseco
|
2019-09-17 19:40:48 +02:00
|
|
|
|
2019-09-27 22:36:49 +02:00
|
|
|
EXPOSE 5000
|
|
|
|
|
2022-06-26 17:55:35 +02:00
|
|
|
CMD ["/var/lib/tmserver/entrypoint.sh"]
|
|
|
|
|
|
|
|
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp
|
|
|
|
RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
|
|
|
|
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz /tmp
|
|
|
|
RUN tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz
|
|
|
|
ENTRYPOINT ["/init"]
|
|
|
|
|
|
|
|
RUN touch /etc/s6-overlay/s6-rc.d/user/contents.d/xaseco
|
|
|
|
COPY services.d/xaseco/ /etc/s6-overlay/s6-rc.d/xaseco/
|