FROM docker.m.daocloud.io/nginx:1.24-alpine # 1.24-alpine 兼容 CentOS 7 (kernel 3.10) 老版本 docker 的 seccomp; # 新版 nginx:alpine (1.31+/alpine 3.22) 会报 pwrite() "/run/nginx.pid" EPERM。 # nginx.k8s.conf is rendered by Jenkins from # .docker-compose/nginx/conf.d/my.conf (envsubst '$KRA_APP'). COPY nginx.k8s.conf /etc/nginx/conf.d/default.conf COPY dist /usr/share/nginx/html