Last active
February 25, 2023 11:02
-
-
Save dmitryrn/ee209196cd3e2eb1b96efb741d05d50d to your computer and use it in GitHub Desktop.
A sample of a working, reproducible Screeps dedicated server
This file contains hidden or 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: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 | |
This file contains hidden or 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
| 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