Skip to content

Commit

Permalink
upgrade to latest builder
Browse files Browse the repository at this point in the history
  • Loading branch information
hpx7 committed May 11, 2024
1 parent bb095a8 commit 26a40eb
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
FROM node:18
FROM node:18.18-alpine as build

WORKDIR /app

RUN apk add --update git

COPY . .

RUN npm i -g hathora@0.11.5
RUN npm i -g hathora@0.12.2
RUN npx hathora build --only server

FROM node:18.18-alpine

WORKDIR /app

# 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

COPY --from=build /app/server/dist server/dist

ENV NODE_ENV=production
ENV DATA_DIR=/app/data

Expand Down

0 comments on commit 26a40eb

Please sign in to comment.