fix(deploy): runtime DNS re-resolution via resolv.conf-injected resolver, both runtimes
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user