diff --git a/Dockerfiles/Dockerfile.agent-provisioning b/Dockerfiles/Dockerfile.agent-provisioning index 17c820995..554345819 100644 --- a/Dockerfiles/Dockerfile.agent-provisioning +++ b/Dockerfiles/Dockerfile.agent-provisioning @@ -1,8 +1,9 @@ # Stage 1: Build the application FROM node:18-alpine as build - +# Install OpenSSL RUN set -eux \ && apk --no-cache add \ + openssl \ openssh-client \ aws-cli \ docker \ @@ -33,9 +34,10 @@ RUN pnpm run build agent-provisioning # Stage 2: Create the final image FROM node:18-alpine as prod - +# Install OpenSSL RUN set -eux \ && apk --no-cache add \ + openssl \ openssh-client \ aws-cli \ docker \ diff --git a/Dockerfiles/Dockerfile.agent-service b/Dockerfiles/Dockerfile.agent-service index 0a6d8d3f8..92c2f8330 100644 --- a/Dockerfiles/Dockerfile.agent-service +++ b/Dockerfiles/Dockerfile.agent-service @@ -1,9 +1,11 @@ # Stage 1: Build the application FROM node:18-alpine as build +# Install OpenSSL RUN npm install -g pnpm --ignore-scripts \ && apk update \ && apk add openssh-client \ + && add --no-cache openssl \ && apk add aws-cli \ && apk add docker \ && apk add docker-compose @@ -28,10 +30,11 @@ RUN pnpm run build agent-service # Stage 2: Create the final image FROM node:18-alpine - +# Install OpenSSL RUN npm install -g pnpm --ignore-scripts \ && apk update \ && apk add openssh-client \ + && add --no-cache openssl \ && apk add aws-cli \ && apk add docker \ && apk add docker-compose diff --git a/Dockerfiles/Dockerfile.api-gateway b/Dockerfiles/Dockerfile.api-gateway index 460cb1751..9594c7747 100644 --- a/Dockerfiles/Dockerfile.api-gateway +++ b/Dockerfiles/Dockerfile.api-gateway @@ -1,6 +1,7 @@ # Stage 1: Build the application FROM node:18-alpine as build -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app @@ -21,7 +22,8 @@ RUN pnpm run build api-gateway # Stage 2: Create the final image FROM node:18-alpine -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app diff --git a/Dockerfiles/Dockerfile.connection b/Dockerfiles/Dockerfile.connection index bca3dd342..e3bf93a56 100644 --- a/Dockerfiles/Dockerfile.connection +++ b/Dockerfiles/Dockerfile.connection @@ -1,6 +1,7 @@ # Stage 1: Build the application FROM node:18-alpine as build -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app @@ -21,7 +22,8 @@ RUN pnpm run build connection # Stage 2: Create the final image FROM node:18-alpine -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app diff --git a/Dockerfiles/Dockerfile.ecosystem b/Dockerfiles/Dockerfile.ecosystem index 892b35d05..4c343fdd3 100644 --- a/Dockerfiles/Dockerfile.ecosystem +++ b/Dockerfiles/Dockerfile.ecosystem @@ -1,6 +1,7 @@ # Stage 1: Build the application FROM node:18-alpine as build -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app @@ -21,7 +22,8 @@ RUN pnpm run build ecosystem # Stage 2: Create the final image FROM node:18-alpine -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app diff --git a/Dockerfiles/Dockerfile.geolocation b/Dockerfiles/Dockerfile.geolocation index 3a297b3ce..2a183e024 100644 --- a/Dockerfiles/Dockerfile.geolocation +++ b/Dockerfiles/Dockerfile.geolocation @@ -1,6 +1,7 @@ # Stage 1: Build the application FROM node:18-alpine as build -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app @@ -21,7 +22,8 @@ RUN pnpm run build geo-location # Stage 2: Create the final image FROM node:18-alpine -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app diff --git a/Dockerfiles/Dockerfile.issuance b/Dockerfiles/Dockerfile.issuance index cc90ba6f7..a34d295c9 100644 --- a/Dockerfiles/Dockerfile.issuance +++ b/Dockerfiles/Dockerfile.issuance @@ -1,6 +1,7 @@ # Stage 1: Build the application FROM node:18-alpine as build -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app @@ -21,7 +22,8 @@ RUN pnpm run build issuance # Stage 2: Create the final image FROM node:18-alpine -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app diff --git a/Dockerfiles/Dockerfile.ledger b/Dockerfiles/Dockerfile.ledger index 023a767dc..cd858d9ac 100644 --- a/Dockerfiles/Dockerfile.ledger +++ b/Dockerfiles/Dockerfile.ledger @@ -1,6 +1,7 @@ # Stage 1: Build the application FROM node:18-alpine as build -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app @@ -22,7 +23,8 @@ RUN npm run build ledger # Stage 2: Create the final image FROM node:18-alpine -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app diff --git a/Dockerfiles/Dockerfile.notification b/Dockerfiles/Dockerfile.notification index ffa746fd0..a363d1823 100644 --- a/Dockerfiles/Dockerfile.notification +++ b/Dockerfiles/Dockerfile.notification @@ -1,6 +1,7 @@ # Stage 1: Build the application FROM node:18-alpine as build -RUN npm install -g pnpm --ignore-scripts +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app @@ -22,7 +23,8 @@ RUN npm run build notification # Stage 2: Create the final image FROM node:18-alpine -RUN npm install -g pnpm --ignore-scripts +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app diff --git a/Dockerfiles/Dockerfile.organization b/Dockerfiles/Dockerfile.organization index 994c25970..60b0f42ae 100644 --- a/Dockerfiles/Dockerfile.organization +++ b/Dockerfiles/Dockerfile.organization @@ -1,6 +1,7 @@ # Stage 1: Build the application FROM node:18-alpine as build -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app @@ -22,7 +23,8 @@ RUN pnpm run build organization # Stage 2: Create the final image FROM node:18-alpine -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app diff --git a/Dockerfiles/Dockerfile.user b/Dockerfiles/Dockerfile.user index 68d6e7ada..ae6e7c2f0 100644 --- a/Dockerfiles/Dockerfile.user +++ b/Dockerfiles/Dockerfile.user @@ -1,6 +1,7 @@ # Stage 1: Build the application FROM node:18-slim as build -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # We don't need the standalone Chromium ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true @@ -35,6 +36,8 @@ RUN pnpm run build user # Stage 2: Create the final image FROM node:18-slim +# Install OpenSSL +RUN apk add --no-cache openssl # We don't need the standalone Chromium ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true diff --git a/Dockerfiles/Dockerfile.verification b/Dockerfiles/Dockerfile.verification index 99771b8db..ef62bba05 100644 --- a/Dockerfiles/Dockerfile.verification +++ b/Dockerfiles/Dockerfile.verification @@ -1,6 +1,7 @@ # Stage 1: Build the application FROM node:18-alpine as build -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app @@ -20,7 +21,8 @@ RUN npm run build verification # Stage 2: Create the final image FROM node:18-alpine -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app diff --git a/Dockerfiles/Dockerfile.webhook b/Dockerfiles/Dockerfile.webhook index b148e1bd6..93a9b7992 100644 --- a/Dockerfiles/Dockerfile.webhook +++ b/Dockerfiles/Dockerfile.webhook @@ -1,6 +1,7 @@ # Stage 1: Build the application FROM node:18-alpine as build -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app @@ -21,7 +22,8 @@ RUN pnpm run build webhook # Stage 2: Create the final image FROM node:18-alpine -RUN npm install -g pnpm +# Install OpenSSL +RUN apk add --no-cache openssl && npm install -g pnpm --ignore-scripts # Set the working directory WORKDIR /app