Skip to content

Instantly share code, notes, and snippets.

@cordx56
Last active February 22, 2021 21:44
Show Gist options
  • Save cordx56/05f108b0ce446181411d78d2b8f4bc89 to your computer and use it in GitHub Desktop.
Save cordx56/05f108b0ce446181411d78d2b8f4bc89 to your computer and use it in GitHub Desktop.
Docker files for factorio server
version: "3"
services:
factorio_server:
build: .
image: factorio:1.1.25
ports:
- 34197:34197/udp
volumes:
- ./data:/app
restart: always
FROM debian:buster-slim
RUN apt update && \
apt install -y curl xz-utils && \
curl -LO https://factorio.com/get-download/1.1.25/headless/linux64 && \
tar Jxvf linux64 && \
apt remove -y curl xz-utils
WORKDIR /app
ENTRYPOINT ["/factorio/bin/x64/factorio"]
CMD ["--start-server", "savedata"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment