Skip to content

Instantly share code, notes, and snippets.

@dmitryrn
Last active February 25, 2023 11:02
Show Gist options
  • Select an option

  • Save dmitryrn/ee209196cd3e2eb1b96efb741d05d50d to your computer and use it in GitHub Desktop.

Select an option

Save dmitryrn/ee209196cd3e2eb1b96efb741d05d50d to your computer and use it in GitHub Desktop.
A sample of a working, reproducible Screeps dedicated server
FROM debian:11
RUN apt update
RUN apt install python2 -y
RUN apt install build-essential -y
RUN apt install curl -y
##############################################
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y nodejs
##############################################
RUN node --version
RUN npm --version
RUN python2 --version
WORKDIR /my-screeps
RUN npm init -y
RUN npm install screeps
RUN echo '!!!!!!YOUR STEAM API KEY HERE!!!!!!!' | ./node_modules/.bin/screeps init
CMD ./node_modules/.bin/screeps start
docker rm screeps ; docker build --progress=plain -t screeps . && docker run --network host --name screeps -v my-screeps:/my-screeps screeps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment