File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Stage 1: Build the application
2
2
FROM node:18-alpine as build
3
3
# Install OpenSSL
4
- RUN apk add --no-cache openssl
5
4
RUN set -eux \
6
5
&& apk --no-cache add \
7
6
openssh-client \
8
7
aws-cli \
9
8
docker \
10
9
docker-compose \
10
+ && apk add --no-cache openssl \
11
11
&& npm install -g pnpm --ignore-scripts \
12
12
&& export PATH=$PATH:/usr/lib/node_modules/pnpm/bin \
13
13
&& rm -rf /var/cache/apk/*
@@ -36,14 +36,14 @@ RUN pnpm run build agent-provisioning
36
36
37
37
# Stage 2: Create the final image
38
38
FROM node:18-alpine as prod
39
- # Install OpenSSL
40
- RUN apk add --no-cache openssl
39
+ # Install OpenSSL
41
40
RUN set -eux \
42
41
&& apk --no-cache add \
43
42
openssh-client \
44
43
aws-cli \
45
44
docker \
46
45
docker-compose \
46
+ && apk add --no-cache openssl \
47
47
&& npm install -g pnpm --ignore-scripts \
48
48
&& export PATH=$PATH:/usr/lib/node_modules/pnpm/bin \
49
49
&& rm -rf /var/cache/apk/*
You can’t perform that action at this time.
0 commit comments