Last active
February 22, 2021 21:44
-
-
Save cordx56/05f108b0ce446181411d78d2b8f4bc89 to your computer and use it in GitHub Desktop.
Docker files for factorio server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
factorio_server: | |
build: . | |
image: factorio:1.1.25 | |
ports: | |
- 34197:34197/udp | |
volumes: | |
- ./data:/app | |
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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