diff --git a/examples/avalon/Dockerfile b/examples/avalon/Dockerfile index 5c362c61..b6af2a87 100644 --- a/examples/avalon/Dockerfile +++ b/examples/avalon/Dockerfile @@ -1,10 +1,16 @@ -FROM node:18 +FROM node:18-alpine + +RUN apk add --update git + +# https://github.com/uNetworking/uWebSockets.js/discussions/346#discussioncomment-1137301 +RUN apk add --no-cache libc6-compat +RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2 WORKDIR /app COPY . . -RUN npm i -g hathora@0.12.0 +RUN npm i -g hathora@0.12.1 RUN npx hathora build --only server ENV NODE_ENV=production diff --git a/examples/boggle/Dockerfile b/examples/boggle/Dockerfile index 5c362c61..b6af2a87 100644 --- a/examples/boggle/Dockerfile +++ b/examples/boggle/Dockerfile @@ -1,10 +1,16 @@ -FROM node:18 +FROM node:18-alpine + +RUN apk add --update git + +# https://github.com/uNetworking/uWebSockets.js/discussions/346#discussioncomment-1137301 +RUN apk add --no-cache libc6-compat +RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2 WORKDIR /app COPY . . -RUN npm i -g hathora@0.12.0 +RUN npm i -g hathora@0.12.1 RUN npx hathora build --only server ENV NODE_ENV=production diff --git a/examples/chat/Dockerfile b/examples/chat/Dockerfile index 5c362c61..b6af2a87 100644 --- a/examples/chat/Dockerfile +++ b/examples/chat/Dockerfile @@ -1,10 +1,16 @@ -FROM node:18 +FROM node:18-alpine + +RUN apk add --update git + +# https://github.com/uNetworking/uWebSockets.js/discussions/346#discussioncomment-1137301 +RUN apk add --no-cache libc6-compat +RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2 WORKDIR /app COPY . . -RUN npm i -g hathora@0.12.0 +RUN npm i -g hathora@0.12.1 RUN npx hathora build --only server ENV NODE_ENV=production diff --git a/examples/chess/Dockerfile b/examples/chess/Dockerfile index 5c362c61..b6af2a87 100644 --- a/examples/chess/Dockerfile +++ b/examples/chess/Dockerfile @@ -1,10 +1,16 @@ -FROM node:18 +FROM node:18-alpine + +RUN apk add --update git + +# https://github.com/uNetworking/uWebSockets.js/discussions/346#discussioncomment-1137301 +RUN apk add --no-cache libc6-compat +RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2 WORKDIR /app COPY . . -RUN npm i -g hathora@0.12.0 +RUN npm i -g hathora@0.12.1 RUN npx hathora build --only server ENV NODE_ENV=production diff --git a/examples/codenames/Dockerfile b/examples/codenames/Dockerfile index 5c362c61..b6af2a87 100644 --- a/examples/codenames/Dockerfile +++ b/examples/codenames/Dockerfile @@ -1,10 +1,16 @@ -FROM node:18 +FROM node:18-alpine + +RUN apk add --update git + +# https://github.com/uNetworking/uWebSockets.js/discussions/346#discussioncomment-1137301 +RUN apk add --no-cache libc6-compat +RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2 WORKDIR /app COPY . . -RUN npm i -g hathora@0.12.0 +RUN npm i -g hathora@0.12.1 RUN npx hathora build --only server ENV NODE_ENV=production diff --git a/examples/poker/Dockerfile b/examples/poker/Dockerfile index 5c362c61..b6af2a87 100644 --- a/examples/poker/Dockerfile +++ b/examples/poker/Dockerfile @@ -1,10 +1,16 @@ -FROM node:18 +FROM node:18-alpine + +RUN apk add --update git + +# https://github.com/uNetworking/uWebSockets.js/discussions/346#discussioncomment-1137301 +RUN apk add --no-cache libc6-compat +RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2 WORKDIR /app COPY . . -RUN npm i -g hathora@0.12.0 +RUN npm i -g hathora@0.12.1 RUN npx hathora build --only server ENV NODE_ENV=production diff --git a/examples/pong/Dockerfile b/examples/pong/Dockerfile index 5c362c61..b6af2a87 100644 --- a/examples/pong/Dockerfile +++ b/examples/pong/Dockerfile @@ -1,10 +1,16 @@ -FROM node:18 +FROM node:18-alpine + +RUN apk add --update git + +# https://github.com/uNetworking/uWebSockets.js/discussions/346#discussioncomment-1137301 +RUN apk add --no-cache libc6-compat +RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2 WORKDIR /app COPY . . -RUN npm i -g hathora@0.12.0 +RUN npm i -g hathora@0.12.1 RUN npx hathora build --only server ENV NODE_ENV=production diff --git a/examples/rock-paper-scissor/Dockerfile b/examples/rock-paper-scissor/Dockerfile index 5c362c61..b6af2a87 100644 --- a/examples/rock-paper-scissor/Dockerfile +++ b/examples/rock-paper-scissor/Dockerfile @@ -1,10 +1,16 @@ -FROM node:18 +FROM node:18-alpine + +RUN apk add --update git + +# https://github.com/uNetworking/uWebSockets.js/discussions/346#discussioncomment-1137301 +RUN apk add --no-cache libc6-compat +RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2 WORKDIR /app COPY . . -RUN npm i -g hathora@0.12.0 +RUN npm i -g hathora@0.12.1 RUN npx hathora build --only server ENV NODE_ENV=production diff --git a/examples/uno/Dockerfile b/examples/uno/Dockerfile index 5c362c61..b6af2a87 100644 --- a/examples/uno/Dockerfile +++ b/examples/uno/Dockerfile @@ -1,10 +1,16 @@ -FROM node:18 +FROM node:18-alpine + +RUN apk add --update git + +# https://github.com/uNetworking/uWebSockets.js/discussions/346#discussioncomment-1137301 +RUN apk add --no-cache libc6-compat +RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2 WORKDIR /app COPY . . -RUN npm i -g hathora@0.12.0 +RUN npm i -g hathora@0.12.1 RUN npx hathora build --only server ENV NODE_ENV=production