Refine scoreboard flow and update ports

This commit is contained in:
2026-04-15 22:56:50 +08:00
parent 8f4411d97e
commit 7fc8e2698b
17 changed files with 4368 additions and 294 deletions

View File

@@ -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"]