factorio-docker/Dockerfile

26 lines
775 B
Docker
Raw Normal View History

FROM frolvlad/alpine-glibc:alpine-3.3_glibc-2.23
2016-02-26 11:09:47 +01:00
2016-10-25 18:49:23 +02:00
MAINTAINER https://github.com/dtandersen/docker_factorio_server
2016-02-26 11:09:47 +01:00
2016-10-25 18:49:23 +02:00
#WORKDIR /opt
2016-02-26 11:09:47 +01:00
2016-10-25 18:49:23 +02:00
COPY ./factorio.crt /opt/factorio.crt
EXPOSE 34197/udp 27015/tcp
2016-02-26 11:09:47 +01:00
2016-10-25 18:49:23 +02:00
ENV VERSION=0.14.14 \
SHA1=decd1ef34a75b309791e65bc92b164f10479753b
2016-03-27 09:02:10 +02:00
RUN apk --update add bash curl && \
2016-04-24 14:06:44 +02:00
curl -sSL --cacert /opt/factorio.crt https://www.factorio.com/get-download/$VERSION/headless/linux64 -o /tmp/factorio_headless_x64_$VERSION.tar.gz && \
2016-10-25 18:49:23 +02:00
echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.gz" | sha1sum -c && \
tar xzf /tmp/factorio_headless_x64_$VERSION.tar.gz --directory /opt && \
2016-04-24 14:06:44 +02:00
rm /tmp/factorio_headless_x64_$VERSION.tar.gz
2016-10-25 18:49:23 +02:00
VOLUME /opt/factorio/saves /opt/factorio/mods
2016-03-27 09:02:10 +02:00
2016-10-25 18:49:23 +02:00
COPY ./smart_launch.sh /opt
2016-10-25 18:49:23 +02:00
CMD ["/opt/smart_launch.sh"]
2016-04-24 14:06:44 +02:00