Skip to content

Commit

Permalink
Add OpenSSL installation support for Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheetal-ayanworks committed Jan 14, 2025
1 parent f4012ce commit 7053840
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.agent-provisioning
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Stage 1: Build the application
FROM node:18-alpine as build

RUN apk add --no-cache openssl
RUN set -eux \
&& apk --no-cache add \
openssh-client \
Expand Down Expand Up @@ -33,7 +33,7 @@ RUN pnpm run build agent-provisioning

# Stage 2: Create the final image
FROM node:18-alpine as prod

RUN apk add --no-cache openssl
RUN set -eux \
&& apk --no-cache add \
openssh-client \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.agent-service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Stage 1: Build the application
FROM node:18-alpine as build

RUN apk add --no-cache openssl
RUN npm install -g pnpm --ignore-scripts \
&& apk update \
&& apk add openssh-client \
Expand Down Expand Up @@ -28,7 +28,7 @@ RUN pnpm run build agent-service

# Stage 2: Create the final image
FROM node:18-alpine

RUN apk add --no-cache openssl
RUN npm install -g pnpm --ignore-scripts \
&& apk update \
&& apk add openssh-client \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/Dockerfile.api-gateway
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Stage 1: Build the application
FROM node:18-alpine as build
RUN apk add --no-cache openssl
RUN npm install -g pnpm
# Set the working directory
WORKDIR /app
Expand All @@ -21,6 +22,7 @@ RUN pnpm run build api-gateway

# Stage 2: Create the final image
FROM node:18-alpine
RUN apk add --no-cache openssl
RUN npm install -g pnpm
# Set the working directory
WORKDIR /app
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/Dockerfile.issuance
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Stage 1: Build the application
FROM node:18-alpine as build
RUN apk add --no-cache openssl
RUN npm install -g pnpm
# Set the working directory
WORKDIR /app
Expand All @@ -22,6 +23,7 @@ RUN pnpm run build issuance

# Stage 2: Create the final image
FROM node:18-alpine
RUN apk add --no-cache openssl
RUN npm install -g pnpm
# Set the working directory
WORKDIR /app
Expand Down

0 comments on commit 7053840

Please sign in to comment.