Skip to content

Commit 19439fa

Browse files
committed
chore: update dependency list and args in docker build
Use correct version of Debian.
1 parent c6a8406 commit 19439fa

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
ARG NGX_VERSION=1.28.0
2-
ARG NGX_DEBUG=false
2+
# NGINX official images are available for one specific release of Debian,
3+
# e.g `nginx:1.28.0-bookworm`. Please see the list of tags on docker hub
4+
# if you need to change NGX_VERSION.
5+
ARG DEBIAN_RELEASE=bookworm
36

47
# --- builder: build all examples
5-
FROM rust:slim-bullseye AS build
8+
FROM rust:slim-${DEBIAN_RELEASE} AS build
69
ARG NGX_VERSION
7-
ARG NGX_DEBUG
10+
ARG NGX_CONFIGURE_ARGS=
811
WORKDIR /project
912
RUN --mount=type=cache,target=/var/cache/apt <<EOF
1013
set -eux
1114
export DEBIAN_FRONTEND=noninteractive
1215
apt-get -qq update
1316
apt-get -qq install --yes --no-install-recommends --no-install-suggests \
1417
libclang-dev \
18+
libpcre2-dev \
1519
libssl-dev \
20+
zlib1g-dev \
1621
pkg-config \
1722
git \
1823
grep \
@@ -36,8 +41,7 @@ RUN --mount=type=cache,id=target,target=target \
3641
mv /project/target/release/examples/*.so /out
3742

3843
# --- copy dynamic modules into official nginx image from builderclear
39-
FROM nginx:${NGX_VERSION}
40-
ARG NGX_VERSION
44+
FROM nginx:${NGX_VERSION}-${DEBIAN_RELEASE}
4145

4246
RUN mkdir -p /etc/nginx/examples
4347

0 commit comments

Comments
 (0)