+2
-1
Dockerfile
+2
-1
Dockerfile
···
1
1
FROM node:20.11-alpine3.18 as build
2
2
3
-
RUN npm install -g pnpm
3
+
RUN corepack enable
4
4
5
5
# Move files into the image and install
6
6
WORKDIR /app
7
7
COPY ./service ./
8
+
RUN corepack prepare --activate
8
9
RUN pnpm install --production --frozen-lockfile > /dev/null
9
10
10
11
# Uses assets from build stage to reduce build size