diff --git a/scripts/docker/nginx-oss/deb/Dockerfile b/scripts/docker/nginx-oss/deb/Dockerfile index dbb5afe01..8fc77e7f4 100644 --- a/scripts/docker/nginx-oss/deb/Dockerfile +++ b/scripts/docker/nginx-oss/deb/Dockerfile @@ -6,6 +6,7 @@ ARG DEBIAN_FRONTEND=noninteractive ARG ENTRY_POINT ARG PACKAGE_NAME ARG PACKAGES_REPO +ARG OS_RELEASE WORKDIR /agent COPY ./build /agent/build @@ -26,7 +27,7 @@ RUN set -x \ # Setup nginx agent repository RUN curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null \ - && printf "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://${PACKAGES_REPO}/nginx-agent/ubuntu/ `lsb_release -cs` agent\n" > /etc/apt/sources.list.d/nginx-agent.list + && printf "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://${PACKAGES_REPO}/nginx-agent/${OS_RELEASE}/ `lsb_release -cs` agent\n" > /etc/apt/sources.list.d/nginx-agent.list RUN chmod +x /agent/entrypoint.sh STOPSIGNAL SIGTERM