Files
wx_pyq/Dockerfile
quant c9ddf68e1c
Some checks failed
Deploy Docker Image / build-and-deploy (push) Has been cancelled
admin
2026-02-27 17:35:49 +08:00

21 lines
386 B
Docker

FROM node:18-alpine
WORKDIR /app
RUN npm config set registry https://registry.npmmirror.com
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Use a simple Node static server instead of nginx
RUN npm install -g serve
EXPOSE 80
# Serve the built SPA on port 80, with history fallback so /admin 等前端路由都可直接访问
CMD ["serve", "-s", "dist", "-l", "80"]