Added dynamic creation of map only if needed

This commit is contained in:
Christophe Vandekerchove
2016-02-26 14:59:01 +01:00
parent 3cd89b6870
commit e30bf8d656
2 changed files with 24 additions and 3 deletions

View File

@ -6,13 +6,13 @@ WORKDIR /opt
COPY ./factorio.tar.gz /opt
RUN tar -xzf factorio.tar.gz
COPY ./smart_launch.sh /opt
RUN ["/opt/factorio/bin/x64/factorio", "--create", "save.zip"]
RUN tar -xzf factorio.tar.gz
WORKDIR /opt/factorio
CMD ["/opt/factorio/bin/x64/factorio", "--disallow-commands", "--start-server", "save.zip"]
CMD ["./smart_launch.sh"]
EXPOSE 34197/udp