diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..34f0e13 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM ubuntu:latest + +MAINTAINER zopanix@gmail.com + +WORKDIR /opt + +COPY ./factorio.tar.gz /opt + +RUN tar -xzf factorio.tar.gz + +RUN ["/opt/factorio/bin/x64/factorio", "--create", "save.zip"] + +WORKDIR /opt/factorio + +CMD ["/opt/factorio/bin/x64/factorio", "--disallow-commands", "--start-server", "save.zip"] + +EXPOSE 34197/udp + +VOLUME "/opt/factorio/saves" + diff --git a/factorio.tar.gz b/factorio.tar.gz new file mode 100644 index 0000000..653270d Binary files /dev/null and b/factorio.tar.gz differ diff --git a/save.zip b/save.zip new file mode 100644 index 0000000..701edc9 Binary files /dev/null and b/save.zip differ