Skip to content

Commit

Permalink
Update nchan to Debian 12
Browse files Browse the repository at this point in the history
  • Loading branch information
jbellerb committed Jan 22, 2024
1 parent 3658aac commit 0346258
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
FROM debian:11-slim as builder
FROM debian:12-slim as builder
# following on the approach described in
# https://github.com/GoogleContainerTools/distroless/issues/863#issuecomment-949723748
RUN cd /tmp && \
apt-get update && \
apt-get download iproute2 debconf perl-base libcrypt1 libbpf0 libelf1 \
zlib1g libbsd0 libmd0 libcap2 libcap2-bin libdb5.3 libmnl0 \
libselinux1 libpcre2-8-0 libxtables12 libnginx-mod-http-echo \
nginx-common lsb-base libpcre3 nginx-light libnginx-mod-nchan && \
apt-get download debconf zlib1g libelf1 libbpf1 libmd0 libbsd0 libcap2 \
libcap2-bin libdb5.3 libmnl0 libpcre2-8-0 libselinux1 libcom-err2 \
libkrb5support0 libk5crypto3 libkeyutils1 libkrb5-3 libgssapi-krb5-2 \
libtirpc-common libtirpc3 libxtables12 iproute2 libcrypt1 nginx-common \
nginx libnginx-mod-http-echo nginx-light libnginx-mod-nchan && \
mkdir /dpkg && \
for deb in *.deb; do dpkg --extract $deb /dpkg; done

FROM gcr.io/distroless/base-debian11:nonroot
FROM gcr.io/distroless/base-debian12:nonroot
USER root
COPY --from=builder /dpkg /
RUN --mount=type=bind,from=builder,target=/mnt ["/mnt/bin/ln", "-sf", "/dev/stdout", "/var/log/nginx/access.log"]
Expand Down

0 comments on commit 0346258

Please sign in to comment.