Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: updated Dockerfile for openssl installation #1122

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfiles/Dockerfile.agent-provisioning
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down
5 changes: 4 additions & 1 deletion Dockerfiles/Dockerfile.agent-service
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
6 changes: 4 additions & 2 deletions Dockerfiles/Dockerfile.api-gateway
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
6 changes: 4 additions & 2 deletions Dockerfiles/Dockerfile.connection
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
6 changes: 4 additions & 2 deletions Dockerfiles/Dockerfile.ecosystem
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
6 changes: 4 additions & 2 deletions Dockerfiles/Dockerfile.geolocation
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
6 changes: 4 additions & 2 deletions Dockerfiles/Dockerfile.issuance
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
6 changes: 4 additions & 2 deletions Dockerfiles/Dockerfile.ledger
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
6 changes: 4 additions & 2 deletions Dockerfiles/Dockerfile.notification
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
6 changes: 4 additions & 2 deletions Dockerfiles/Dockerfile.organization
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
5 changes: 4 additions & 1 deletion Dockerfiles/Dockerfile.user
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions Dockerfiles/Dockerfile.verification
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
6 changes: 4 additions & 2 deletions Dockerfiles/Dockerfile.webhook
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down