diff --git a/packaging/debian12/Dockerfile b/packaging/debian12/Dockerfile index 459887a2a53..fb84e04b8c0 100644 --- a/packaging/debian12/Dockerfile +++ b/packaging/debian12/Dockerfile @@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive SHELL ["/bin/bash", "-c"] RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && mkdir -p /etc/apt/keyrings && \ - curl -sL https://deb.nodesource.com/gpgkey/nodesource.gpg.key -o /etc/apt/keyrings/nodesource.asc && \ + curl --proto "=https" -sL https://deb.nodesource.com/gpgkey/nodesource.gpg.key -o /etc/apt/keyrings/nodesource.asc && \ echo "deb [signed-by=/etc/apt/keyrings/nodesource.asc] https://deb.nodesource.com/node_20.x bookworm main" > /etc/apt/sources.list.d/nodesource.list RUN apt-get update && apt-get -y upgrade && \ diff --git a/packaging/ubuntu22.04/Dockerfile b/packaging/ubuntu22.04/Dockerfile index ab8cb4f0ee2..11b8c43070b 100644 --- a/packaging/ubuntu22.04/Dockerfile +++ b/packaging/ubuntu22.04/Dockerfile @@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive SHELL ["/bin/bash", "-c"] RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && mkdir -p /etc/apt/keyrings && \ - curl -sL https://deb.nodesource.com/gpgkey/nodesource.gpg.key -o /etc/apt/keyrings/nodesource.asc && \ + curl --proto "=https" -sL https://deb.nodesource.com/gpgkey/nodesource.gpg.key -o /etc/apt/keyrings/nodesource.asc && \ echo "deb [signed-by=/etc/apt/keyrings/nodesource.asc] https://deb.nodesource.com/node_20.x jammy main" > /etc/apt/sources.list.d/nodesource.list RUN apt-get update && apt-get -y upgrade && \