diff --git a/Dockerfile b/Dockerfile index 95b6803..9cbf576 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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 @@ -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