Refine scoreboard flow and update ports
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -8,11 +8,18 @@ RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.29-alpine
|
||||
FROM node:22-alpine AS runner
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=8788
|
||||
|
||||
EXPOSE 80
|
||||
COPY package*.json ./
|
||||
RUN npm ci --omit=dev
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
COPY server ./server
|
||||
COPY --from=builder /app/dist ./dist
|
||||
|
||||
EXPOSE 8788
|
||||
|
||||
CMD ["node", "server/server.mjs"]
|
||||
|
||||
Reference in New Issue
Block a user