2016-12-15 00:37:56 +00:00
|
|
|
FROM debian
|
|
|
|
|
2017-10-17 19:55:52 +00:00
|
|
|
ENV FACTORIO_SERVER_VERSION 0.15.37
|
2016-12-15 00:37:56 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/opt/defaults/start.sh"]
|
|
|
|
EXPOSE 34197/udp
|
|
|
|
|
|
|
|
ADD . /opt/defaults
|
|
|
|
|
|
|
|
RUN set -ex \
|
2017-08-18 21:13:16 +00:00
|
|
|
&& apt-get update && apt-get install -y curl xz-utils \
|
2016-12-15 00:37:56 +00:00
|
|
|
&& mkdir -p /opt \
|
|
|
|
&& useradd -d /opt/factorio -M -u 10000 factorio \
|
2017-08-18 21:13:16 +00:00
|
|
|
&& curl -sSLfo /tmp/factorio.tgz https://www.factorio.com/get-download/${FACTORIO_SERVER_VERSION}/headless/linux64 \
|
|
|
|
&& tar -C /opt -x -J -f /tmp/factorio.tgz \
|
2016-12-15 00:37:56 +00:00
|
|
|
&& chown -R factorio:factorio /opt/factorio \
|
2016-12-15 03:55:16 +00:00
|
|
|
&& rm /tmp/factorio.tgz
|
2016-12-15 00:37:56 +00:00
|
|
|
|
|
|
|
USER factorio
|
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
WORKDIR /data
|