mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-10 12:47:24 +01:00
21 lines
351 B
Docker
21 lines
351 B
Docker
|
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"
|
||
|
|