This commit is contained in:
David Andersen 2017-12-13 21:17:41 +00:00
parent d6d039d4a6
commit 6b58cb1909
2 changed files with 5 additions and 12 deletions

View File

@ -1,5 +1,4 @@
FROM frolvlad/alpine-glibc:alpine-3.6 FROM frolvlad/alpine-glibc:alpine-3.6
#FROM ubuntu:18.04
MAINTAINER https://github.com/dtandersen/docker_factorio_server MAINTAINER https://github.com/dtandersen/docker_factorio_server
@ -10,17 +9,13 @@ ARG PGID=845
ENV PORT=34197 \ ENV PORT=34197 \
RCON_PORT=27015 \ RCON_PORT=27015 \
VERSION=0.16.0 \ VERSION=0.16.1 \
SHA1=b4d8d6db02aff914b823d5f525c0f0f2acd9c355 SHA1=1247cdb57b8146896f1972c60911fe45119c384b
# VERSION=0.15.40 \
# SHA1=f79a975f6b8c0ee87e2fa60f7d1f7133f332c3ec
VOLUME /factorio VOLUME /factorio
RUN mkdir -p /opt && \ RUN mkdir -p /opt && \
# apt-get update && \ apk add --update --no-cache pwgen && \
# apt-get install -y curl xz-utils
apk add --update --no-cache tini pwgen && \
apk add --update --no-cache --virtual .build-deps curl && \ apk add --update --no-cache --virtual .build-deps curl && \
curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \ curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \
-o /tmp/factorio_headless_x64_$VERSION.tar.xz && \ -o /tmp/factorio_headless_x64_$VERSION.tar.xz && \
@ -39,10 +34,8 @@ EXPOSE $PORT/udp $RCON_PORT/tcp
COPY ./docker-entrypoint.sh / COPY ./docker-entrypoint.sh /
#USER $USER USER $USER
#ENTRYPOINT ["/sbin/tini", "--"]
#CMD ["/docker-entrypoint.sh"]
ENTRYPOINT ["/docker-entrypoint.sh"] ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/opt/factorio/bin/x64/factorio", \ CMD ["/opt/factorio/bin/x64/factorio", \
"--port", "$PORT", \ "--port", "$PORT", \

View File

@ -6,4 +6,4 @@ services:
- "34197:34197" - "34197:34197"
volumes: volumes:
- /opt/factorio:/factorio - /opt/factorio:/factorio
user: 1001:1001 user: 1000:1000