Initial commit.
commit
5c3e365396
|
@ -0,0 +1,6 @@
|
||||||
|
###
|
||||||
|
|
||||||
|
.git*
|
||||||
|
|
||||||
|
Dockerfile
|
||||||
|
.dockerignore
|
|
@ -0,0 +1,28 @@
|
||||||
|
FROM debian:jessie-slim
|
||||||
|
|
||||||
|
ARG FACTORIO_VERSION=0.14.21
|
||||||
|
ARG FACTORIO_HEADLESS_URL=https://www.factorio.com/get-download/${FACTORIO_VERSION}/headless/linux64
|
||||||
|
|
||||||
|
# Unpack and reconfigure Factorio
|
||||||
|
ADD ${FACTORIO_HEADLESS_URL} /var/tmp/factorio.tar.gz
|
||||||
|
RUN \
|
||||||
|
mkdir -p /opt &&\
|
||||||
|
tar vxf /var/tmp/*.tar* -C /opt/ &&\
|
||||||
|
rm -rf /var/tmp/* /tmp/* &&\
|
||||||
|
\
|
||||||
|
for f in /opt/factorio/bin/x64/*; do \
|
||||||
|
chmod -v +x "$f"; \
|
||||||
|
done
|
||||||
|
|
||||||
|
# Reconfigure Factorio
|
||||||
|
COPY config-path.cfg /opt/factorio/config-path.cfg
|
||||||
|
COPY config /config/
|
||||||
|
|
||||||
|
# Create an empty write data folder
|
||||||
|
WORKDIR /data
|
||||||
|
|
||||||
|
VOLUME ["/config", "/data"]
|
||||||
|
|
||||||
|
EXPOSE 34197/udp
|
||||||
|
|
||||||
|
CMD ["/opt/factorio/bin/x64/factorio", "--start-server-load-latest", "--mod-directory", "./mods"]
|
|
@ -0,0 +1,3 @@
|
||||||
|
config-path=/config
|
||||||
|
|
||||||
|
use-system-read-write-data-directories=false
|
|
@ -0,0 +1,3 @@
|
||||||
|
[path]
|
||||||
|
read-data=/opt/factorio/data
|
||||||
|
write-data=/data
|
Loading…
Reference in New Issue