Skip to content

Instantly share code, notes, and snippets.

@b4tman
Last active August 8, 2021 10:34
Show Gist options
  • Save b4tman/bc454c3c52cfeb48d0560ddd60a0699f to your computer and use it in GitHub Desktop.
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)
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
@b4tman
Copy link
Author

b4tman commented Nov 1, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment