Skip to content

Commit 7092dcd

Browse files
authored
Update Dockerfile
1 parent ae41c56 commit 7092dcd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ FROM node:18-slim AS base
22
ENV PNPM_HOME="/pnpm"
33
ENV PATH="$PNPM_HOME:$PATH"
44
#Hook into pnpm without installing pnpm. (magic) (https://nodejs.org/docs/latest-v18.x/api/corepack.html)
5-
RUN corepack enable
5+
# RUN corepack enable
6+
#Current fix for the corepack download issue
7+
RUN npm install -g pnpm
68
WORKDIR /usr/src/app
79
COPY package*.json pnpm-lock*.yaml ./
810

@@ -23,4 +25,4 @@ ENV NODE_ENV production
2325
WORKDIR /usr/src/app
2426
COPY --from=prod_dependencies /usr/src/app/node_modules ./node_modules
2527
COPY --from=builder /usr/src/app/dist ./dist
26-
CMD [ "pnpm", "run", "start" ]
28+
CMD [ "pnpm", "run", "start" ]

0 commit comments

Comments
 (0)