Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Nidrux authored Mar 28, 2024
1 parent ae41c56 commit 7092dcd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ FROM node:18-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
#Hook into pnpm without installing pnpm. (magic) (https://nodejs.org/docs/latest-v18.x/api/corepack.html)
RUN corepack enable
# RUN corepack enable
#Current fix for the corepack download issue
RUN npm install -g pnpm
WORKDIR /usr/src/app
COPY package*.json pnpm-lock*.yaml ./

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

0 comments on commit 7092dcd

Please # to comment.