Skip to content

Instantly share code, notes, and snippets.

@duckman
Created March 3, 2016 16:19
Show Gist options
  • Select an option

  • Save duckman/d50caea4b8015a6b84af to your computer and use it in GitHub Desktop.

Select an option

Save duckman/d50caea4b8015a6b84af to your computer and use it in GitHub Desktop.
factorio dockerfile
FROM ubuntu:14.04
WORKDIR /factorio
RUN apt-get update &&\
apt-get install -y curl &&\
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN curl -L -k https://www.factorio.com/get-download/0.12.24/headless/linux64 | tar -xzf -
RUN /factorio/factorio/bin/x64/factorio --create mygame
VOLUME ["/factorio/factorio"]
EXPOSE 34197/udp
WORKDIR /factorio/factorio/bin/x64/
ENTRYPOINT ["./factorio", "--start-server", "mygame"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment