Dockerfile to build a Factorio game server image. You can find the pre-built images on Docker Hub at flowman/factorio
0.12.29
I'm keeping the image up to date. If you need to use an older version, checkout out the different tags.
See factorio's site
The init script will automatically create a new save game if none exists.
docker run -d \
-p 34197:34197/udp \
--name factorio-server \
flowman/factorio
Use a docker volume to persist the savegames on the host machine rather than in the docker container.
docker run -d \
-v $(pwd)/saves:/opt/factorio/saves \
-p 34197:34197/udp \
--restart=always \
--name factorio-server \
flowman/factorio
Link a volume with your custom mods.
docker run -d \
-v $(pwd)/saves:/opt/factorio/saves \
-v $(pwd)/mods:/opt/factorio/mods \
-p 34197:34197/udp \
--restart=always \
--name factorio-server \
flowman/factorio
Content type
Image
Digest
Size
23.7 MB
Last updated
over 10 years ago
docker pull flowman/factorio