/screeps-docker

Primary LanguageJavaScriptMIT LicenseMIT

screeps-docker

Dockerlized Screeps.

Build

docker build -t screeps .

With Version

VERSION=4.2.12
docker build --build-arg "version=${VERSION}" -t screeps .

alpine

docker build -t screeps:alpine -f Dockerfile-alpine .

With Version

VERSION=4.2.12
docker build --build-arg "version=${VERSION}"  -f Dockerfile-alpine -t screeps .

Pre-built Image

See in Docker Hub

docker pull yz89122/screeps

With Version

VERSION=4.2.12
docker pull "yz89122/screeps:${VERSION}"

alpine

docker pull yz89122/screeps:alpine

With Version

VERSION=4.2.12
docker pull "yz89122/screeps:alpine-${VERSION}"

Run

  1. Generate configurations

    docker run -it --rm -v "$PWD/screeps-data:/app" screeps npx screeps init

    Then enter your Steam API key

  2. Start

    docker run -d -v "$PWD/screeps-data:/app" -p "21025:21025" screeps

    Then the screeps server will listening on port 21025