Files
pk-lab-xhs/Dockerfile
T
codex-bot 36aee09dfa
Verify mini program and deploy preview / verify-deploy (push) Successful in 50s
feat: add animated choice modes and bracket editor
2026-09-19 04:11:21 +08:00

15 lines
486 B
Docker

FROM node:22-alpine AS web-build
WORKDIR /app
COPY package.json package-lock.json vite.config.js ./
RUN npm ci
COPY web ./web
RUN npm run build:web
FROM nginx:1.27-alpine
COPY --from=web-build /app/dist /usr/share/nginx/html
COPY assets /usr/share/nginx/html/assets
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 8080
HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=5 CMD wget -q -O- http://127.0.0.1:8080/health || exit 1
CMD ["nginx", "-g", "daemon off;"]