@@ -15,9 +15,9 @@ RUN cd /application && \
1515
1616# This intermediate image is used to fetch the GPG key for the NGINX repo
1717# without polluting the runtime image with GPG packages
18- FROM ubuntu:jammy AS nginx-gpg-key
18+ FROM ubuntu:24.04 AS nginx-gpg-key
1919
20- ENV NGINX_GPG_KEY="573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 "
20+ ENV NGINX_GPG_KEY="2FD21310B49F6B46 "
2121
2222RUN apt-get update && \
2323 apt-get install -y gnupg2 && \
@@ -27,7 +27,7 @@ RUN gpg2 --keyserver hkp://keyserver.ubuntu.com:80 --keyserver-options timeout=1
2727 gpg2 --export "$NGINX_GPG_KEY" > /usr/share/keyrings/nginx-archive-keyring.gpg
2828
2929
30- FROM ubuntu:jammy
30+ FROM ubuntu:24.04
3131
3232# Copy the GPG key from the intermediate container
3333COPY --from=nginx-gpg-key /usr/share/keyrings/nginx-archive-keyring.gpg /usr/share/keyrings/
@@ -45,11 +45,11 @@ COPY --from=nginx-gpg-key /usr/share/keyrings/nginx-archive-keyring.gpg /usr/sha
4545# but we don't want to make all of /var/run writable
4646RUN echo "Target NGINX version: ${NGINX_VERSION}"
4747RUN apt-get update && \
48- apt-get install --no-install-recommends --no-install-suggests -y ca-certificates && \
49- echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/mainline/ubuntu/ jammy nginx" \
48+ apt-get install --no-install-recommends --no-install-suggests -y ca-certificates tini && \
49+ echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/mainline/ubuntu/ noble nginx" \
5050 > /etc/apt/sources.list.d/nginx.list && \
5151 apt-get update && \
52- apt-get install --no-install-recommends --no-install-suggests -y "nginx=${NGINX_VERSION}*" tini && \
52+ apt-get install --no-install-recommends --no-install-suggests -y "nginx=${NGINX_VERSION}*" && \
5353 rm -rf /var/lib/apt/lists/* && \
5454 ln -sf /dev/stdout /var/log/nginx/access.log && \
5555 ln -sf /dev/stderr /var/log/nginx/error.log && \
0 commit comments