Files
project57-x/Dockerfile
T
mdszxy 74dd730e19
CI Pipeline / check-commit (push) Successful in 5s
CI Pipeline / deploy-only (push) Has been skipped
CI Pipeline / build (push) Successful in 20s
CI Pipeline / deploy (push) Successful in 17s
fix: proxy admin via A public host, ClusterIP port 80 refused [deploy]
2026-10-06 00:30:08 +08:00

14 lines
544 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# CI 中先 pnpm build 产出 dist/;运行时由 nginx 托管,并把 admin/embed/api 反代到 A 站
FROM nginx:1.27-alpine
# 走 A 站公网(集群内 project57-svc:80 当前 Connection refused)
ENV A_UPSTREAM=https://project57.website-build.org
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY docker-entrypoint.d/40-a-upstream.sh /docker-entrypoint.d/40-a-upstream.sh
RUN sed -i 's/\r$//' /docker-entrypoint.d/40-a-upstream.sh \
&& chmod 0755 /docker-entrypoint.d/40-a-upstream.sh
COPY dist /usr/share/nginx/html
EXPOSE 3000