@@ -15,9 +15,9 @@ RUN cd /application && \
15
15
16
16
# This intermediate image is used to fetch the GPG key for the NGINX repo
17
17
# 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
19
19
20
- ENV NGINX_GPG_KEY="573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 "
20
+ ENV NGINX_GPG_KEY="2FD21310B49F6B46 "
21
21
22
22
RUN apt-get update && \
23
23
apt-get install -y gnupg2 && \
@@ -27,7 +27,7 @@ RUN gpg2 --keyserver hkp://keyserver.ubuntu.com:80 --keyserver-options timeout=1
27
27
gpg2 --export "$NGINX_GPG_KEY" > /usr/share/keyrings/nginx-archive-keyring.gpg
28
28
29
29
30
- FROM ubuntu:jammy
30
+ FROM ubuntu:24.04
31
31
32
32
# Copy the GPG key from the intermediate container
33
33
COPY --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
45
45
# but we don't want to make all of /var/run writable
46
46
RUN echo "Target NGINX version: ${NGINX_VERSION}"
47
47
RUN 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" \
50
50
> /etc/apt/sources.list.d/nginx.list && \
51
51
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}*" && \
53
53
rm -rf /var/lib/apt/lists/* && \
54
54
ln -sf /dev/stdout /var/log/nginx/access.log && \
55
55
ln -sf /dev/stderr /var/log/nginx/error.log && \
0 commit comments