Files
project57-x/Dockerfile
T
mdszxy fe18e608dc
CI Pipeline / check-commit (push) Successful in 7s
CI Pipeline / deploy-only (push) Has been skipped
CI Pipeline / build (push) Successful in 27s
CI Pipeline / deploy (push) Failing after 2s
feat: proxy embed assets to in-cluster project57 [deploy]
2026-10-05 17:42:36 +08:00

11 lines
369 B
Docker

# CI 中先 pnpm build 产出 dist/;运行时由 nginx 托管,并把 /embed /images /api/contact 反代到 A 站
FROM nginx:1.27-alpine
# 集群内 A 站地址,可被 K8s env 覆盖
ENV A_UPSTREAM=http://project57-deploy.ns-project57.svc.cluster.local:3000
COPY nginx.conf /etc/nginx/templates/default.conf.template
COPY dist /usr/share/nginx/html
EXPOSE 3000