Skip to content

Commit b8d0edd

Browse files
committed
Add OpenSSL installation support for Docker image
Signed-off-by: [email protected] <[email protected]>
1 parent 28f2205 commit b8d0edd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfiles/Dockerfile.agent-provisioning

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Stage 1: Build the application
22
FROM node:18-alpine as build
33
# Install OpenSSL
4-
RUN apk add --no-cache openssl
54
RUN set -eux \
65
&& apk --no-cache add \
76
openssh-client \
87
aws-cli \
98
docker \
109
docker-compose \
10+
&& apk add --no-cache openssl \
1111
&& npm install -g pnpm --ignore-scripts \
1212
&& export PATH=$PATH:/usr/lib/node_modules/pnpm/bin \
1313
&& rm -rf /var/cache/apk/*
@@ -36,14 +36,14 @@ RUN pnpm run build agent-provisioning
3636

3737
# Stage 2: Create the final image
3838
FROM node:18-alpine as prod
39-
# Install OpenSSL
40-
RUN apk add --no-cache openssl
39+
# Install OpenSSL
4140
RUN set -eux \
4241
&& apk --no-cache add \
4342
openssh-client \
4443
aws-cli \
4544
docker \
4645
docker-compose \
46+
&& apk add --no-cache openssl \
4747
&& npm install -g pnpm --ignore-scripts \
4848
&& export PATH=$PATH:/usr/lib/node_modules/pnpm/bin \
4949
&& rm -rf /var/cache/apk/*

0 commit comments

Comments
 (0)