2023-12-20 23:11:27 +00:00
|
|
|
FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b8642bcc24fc11bad78c7bec726f340
|
2023-12-20 23:25:33 +00:00
|
|
|
ARG VERSION=1.25 # renovate: datasource=github-tags depName=nginx/nginx extractVersion=^release-(?<version>.*)$
|
2023-08-12 15:31:31 +00:00
|
|
|
|
|
|
|
RUN apt-get update -y && apt-get install -y --no-install-recommends ca-certificates
|
|
|
|
ADD --chown=_apt https://nginx.org/keys/nginx_signing.key /etc/apt/trusted.gpg.d/nginx.asc
|
|
|
|
|
|
|
|
RUN echo "deb https://nginx.org/packages/mainline/debian bookworm nginx" > /etc/apt/sources.list.d/nginx.list && \
|
2023-11-05 17:43:57 +00:00
|
|
|
apt-get update && apt-get install -y --no-install-recommends curl nginx="${VERSION}*" && \
|
2023-08-12 15:31:31 +00:00
|
|
|
rm -Rf /etc/nginx
|
2021-01-13 16:36:50 +00:00
|
|
|
|
2022-05-04 10:29:53 +00:00
|
|
|
RUN addgroup --system --gid 10000 nginx-shared
|
|
|
|
RUN gpasswd --add nginx nginx-shared
|
|
|
|
|
2021-01-13 16:36:50 +00:00
|
|
|
COPY container/config /etc/nginx
|
2021-07-23 22:31:01 +00:00
|
|
|
COPY container/run-nginx /run-nginx
|
2022-05-04 10:29:53 +00:00
|
|
|
|
2021-01-13 16:36:50 +00:00
|
|
|
RUN nginx -t
|
|
|
|
|
|
|
|
EXPOSE 80 443
|
2023-08-12 15:31:31 +00:00
|
|
|
STOPSIGNAL SIGQUIT
|
|
|
|
|
2021-07-23 22:31:01 +00:00
|
|
|
ENTRYPOINT ["/run-nginx"]
|