Some checks failed
Build and Deploy Front / deploy (push) Failing after 32m20s
生产不再内置 nginx/`__cos__`;镜像用 serve -s,HTTPS 由 Traefik+cert-manager;面单预览走 stream。 Co-authored-by: Cursor <cursoragent@cursor.com>
10 lines
348 B
Docker
10 lines
348 B
Docker
# 本地/简易 Docker:仅静态 SPA。HTTPS 由外层网关(如 Traefik)终结。
|
||
# 构建前先执行:pnpm build
|
||
FROM docker.m.daocloud.io/library/node:20-alpine
|
||
WORKDIR /app
|
||
RUN npm config set registry https://registry.npmmirror.com \
|
||
&& npm install -g serve@14.2.4
|
||
COPY dist/ ./dist/
|
||
EXPOSE 80
|
||
CMD ["serve", "-s", "dist", "-l", "80"]
|