Last active
August 8, 2021 10:34
-
-
Save b4tman/bc454c3c52cfeb48d0560ddd60a0699f to your computer and use it in GitHub Desktop.
Dockerfile for standalone multiplayer version of Gwent (fan made, like in The Witcher 3)
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 node:10.12.0-alpine | |
WORKDIR /tmp | |
RUN apk add --no-cache --virtual .build-deps \ | |
graphicsmagick \ | |
git \ | |
libpng \ | |
libpng-dev \ | |
python \ | |
make \ | |
g++ \ | |
gcc \ | |
binutils-gold \ | |
curl \ | |
nasm \ | |
autoconf \ | |
automake \ | |
linux-headers \ | |
zlib-dev \ | |
zlib \ | |
ca-certificates | |
RUN git clone https://github.com/exane/not-gwent-online | |
WORKDIR /tmp/not-gwent-online | |
RUN git checkout e45d26ef7c0926ccab8acc6dde0f0eb79d3bb68f | |
RUN npm install | |
# errors: acorn@^6.0.0 [email protected] | |
RUN npm run build | |
ENV SERVER_HOST 192.168.99.100 | |
RUN sed -i -e "s/127.0.0.1/${SERVER_HOST}/g" public/Config.js | |
EXPOSE 3000/tcp 16918/tcp | |
CMD node server/server.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Config:
Replace
192.168.99.100
with your server ip or hostname.Build:
docker build -t tmp/not-gwent-online -f not-gwent-online.Dockerfile .
Run:
docker run --rm -ti -p 3000:3000 -p 16918:16918 tmp/not-gwent-online