|
3 | 3 | # |
4 | 4 | # PLEASE DO NOT EDIT IT DIRECTLY. |
5 | 5 | # |
6 | | -FROM alpine:3.20 |
| 6 | + |
| 7 | +ARG BASE_REGISTRY=201959883603.dkr.ecr.us-east-2.amazonaws.com |
| 8 | +ARG BASE_IMAGE=mdaca/base-images/ironbank-alpine |
| 9 | +ARG BASE_TAG=3.20.2 |
| 10 | +FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} |
7 | 11 |
|
8 | 12 | LABEL maintainer= "NGINX Docker Maintainers <[email protected]>" |
9 | 13 |
|
@@ -107,17 +111,21 @@ RUN set -x \ |
107 | 111 | && ln -sf /dev/stdout /var/log/nginx/access.log \ |
108 | 112 | && ln -sf /dev/stderr /var/log/nginx/error.log \ |
109 | 113 | # create a docker-entrypoint.d directory |
110 | | - && mkdir /docker-entrypoint.d |
| 114 | + && mkdir /docker-entrypoint.d \ |
| 115 | + && chown -R nginx:nginx /var/cache/nginx /etc/nginx /usr/share/nginx /run /var/log/nginx || true |
| 116 | + |
| 117 | +COPY --chown=nginx:nginx docker-entrypoint.sh / |
| 118 | +COPY --chown=nginx:nginx 10-listen-on-ipv6-by-default.sh /docker-entrypoint.d |
| 119 | +COPY --chown=nginx:nginx 15-local-resolvers.envsh /docker-entrypoint.d |
| 120 | +COPY --chown=nginx:nginx 20-envsubst-on-templates.sh /docker-entrypoint.d |
| 121 | +COPY --chown=nginx:nginx 30-tune-worker-processes.sh /docker-entrypoint.d |
| 122 | + |
| 123 | +USER nginx |
111 | 124 |
|
112 | | -COPY docker-entrypoint.sh / |
113 | | -COPY 10-listen-on-ipv6-by-default.sh /docker-entrypoint.d |
114 | | -COPY 15-local-resolvers.envsh /docker-entrypoint.d |
115 | | -COPY 20-envsubst-on-templates.sh /docker-entrypoint.d |
116 | | -COPY 30-tune-worker-processes.sh /docker-entrypoint.d |
117 | 125 | ENTRYPOINT ["/docker-entrypoint.sh"] |
118 | 126 |
|
119 | 127 | EXPOSE 80 |
120 | | - |
| 128 | +EXPOSE 8080 |
121 | 129 | STOPSIGNAL SIGQUIT |
122 | 130 |
|
123 | 131 | CMD ["nginx", "-g", "daemon off;"] |
0 commit comments