Added dockerization

This commit is contained in:
2025-09-29 15:45:48 +02:00
parent bb78d7f5af
commit f6926b2230
7 changed files with 290 additions and 21 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM node:24-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
RUN npm prune --production
FROM node:24-alpine
WORKDIR /app
COPY --from=builder /app/build build/
COPY --from=builder /app/node_modules node_modules/
COPY package.json .
EXPOSE 3000
ENV NODE_ENV=production
ENV PUBLIC_JEOPARDY_SERVER=127.0.0.1:12345
CMD [ "node", "build" ]