fix(deploy): runtime DNS re-resolution via resolv.conf-injected resolver, both runtimes

This commit is contained in:
2026-09-07 16:48:58 +08:00
parent 96e96fec51
commit 67c95e7bdc
3 changed files with 21 additions and 2 deletions
+3
View File
@@ -7,4 +7,7 @@ RUN npm run build
FROM nginx:1.27-alpine
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
COPY --chmod=755 deploy/entrypoint-resolver.sh /entrypoint-resolver.sh
COPY --from=build /src/dist /usr/share/nginx/html
# entrypoint 先按 /etc/resolv.conf 注入 resolver(Docker/podman 双运行时),再执行继承的 nginx CMD
ENTRYPOINT ["/entrypoint-resolver.sh"]