Dockerlized Screeps.
docker build -t screeps .
VERSION=4.2.12
docker build --build-arg "version=${VERSION}" -t screeps .
docker build -t screeps:alpine -f Dockerfile-alpine .
VERSION=4.2.12
docker build --build-arg "version=${VERSION}" -f Dockerfile-alpine -t screeps .
See in Docker Hub
docker pull yz89122/screeps
VERSION=4.2.12
docker pull "yz89122/screeps:${VERSION}"
docker pull yz89122/screeps:alpine
VERSION=4.2.12
docker pull "yz89122/screeps:alpine-${VERSION}"
-
Generate configurations
docker run -it --rm -v "$PWD/screeps-data:/app" screeps npx screeps init
Then enter your Steam API key
-
Start
docker run -d -v "$PWD/screeps-data:/app" -p "21025:21025" screeps
Then the screeps server will listening on port
21025