2017-06-01 20:31:53 +02:00
|
|
|
FROM frolvlad/alpine-glibc:alpine-3.6
|
2017-04-24 18:00:45 +02:00
|
|
|
|
|
|
|
MAINTAINER https://github.com/dtandersen/docker_factorio_server
|
|
|
|
|
2017-04-24 19:33:21 +02:00
|
|
|
ENV PORT=34197 \
|
2017-10-17 16:26:02 +02:00
|
|
|
VERSION=0.15.37 \
|
|
|
|
SHA1=f2a05ee3c0cbe1d7fe5f8928a337b7133aaa70fc
|
2017-04-24 18:00:45 +02:00
|
|
|
|
|
|
|
RUN mkdir /opt && \
|
2017-04-24 22:19:30 +02:00
|
|
|
apk add --update --no-cache tini pwgen && \
|
|
|
|
apk add --update --no-cache --virtual .build-deps curl && \
|
2017-04-24 18:00:45 +02:00
|
|
|
curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \
|
2017-04-24 19:33:21 +02:00
|
|
|
-o /tmp/factorio_headless_x64_$VERSION.tar.xz && \
|
|
|
|
echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.xz" | sha1sum -c && \
|
|
|
|
tar xf /tmp/factorio_headless_x64_$VERSION.tar.xz --directory /opt && \
|
|
|
|
rm /tmp/factorio_headless_x64_$VERSION.tar.xz && \
|
2017-04-24 18:00:45 +02:00
|
|
|
ln -s /factorio/saves /opt/factorio/saves && \
|
2017-04-24 22:19:30 +02:00
|
|
|
ln -s /factorio/mods /opt/factorio/mods && \
|
|
|
|
apk del .build-deps
|
2017-04-24 18:00:45 +02:00
|
|
|
|
|
|
|
VOLUME /factorio
|
|
|
|
|
2017-04-24 19:33:21 +02:00
|
|
|
EXPOSE $PORT/udp 27015/tcp
|
2017-04-24 18:00:45 +02:00
|
|
|
|
|
|
|
COPY ./docker-entrypoint.sh /
|
|
|
|
|
|
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|
|
|
|
CMD ["/docker-entrypoint.sh"]
|