Skip to content

Commit

Permalink
njs no longer required as a separate download -- it is included with …
Browse files Browse the repository at this point in the history
…nginx now
  • Loading branch information
zsteinkamp committed Jun 14, 2023
1 parent 77c274d commit b595572
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

ARG NGINX_VERSION=1.24.0
ARG NJS_VERSION=0.7.12

FROM node:20.2.0-bullseye AS builder
ENV NODE_ENV=development
Expand All @@ -17,7 +16,6 @@ RUN npm run build

FROM nginx:${NGINX_VERSION}
ARG NGINX_VERSION
ARG NJS_VERSION

# following installation steps from http://nginx.org/en/linux_packages.html#Debian
RUN --mount=type=cache,target=/var/cache/apt <<EOF
Expand All @@ -27,15 +25,6 @@ RUN --mount=type=cache,target=/var/cache/apt <<EOF
apt-get -qq install --yes --no-install-recommends --no-install-suggests \
curl gnupg2 ca-certificates debian-archive-keyring
update-ca-certificates
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
| tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
gpg --dry-run --quiet --no-keyring --import --import-options import-show \
/usr/share/keyrings/nginx-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
http://nginx.org/packages/mainline/debian $(echo $PKG_RELEASE | cut -f2 -d~) nginx" \
| tee /etc/apt/sources.list.d/nginx.list
apt-get -qq install --yes --no-install-recommends --no-install-suggests \
curl nginx-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${PKG_RELEASE}
apt-get remove --purge --auto-remove --yes
rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx.list
EOF
Expand Down

0 comments on commit b595572

Please sign in to comment.