Skip to content

Commit

Permalink
build: do not install pnpm on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertHernandez committed Nov 23, 2024
1 parent e8c03df commit 89f176c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ ENV DIR /app
WORKDIR $DIR
ARG NPM_TOKEN

RUN npm install -g pnpm@9

FROM base AS dev

ENV NODE_ENV=development
ENV CI=true

RUN npm install -g pnpm@9

COPY package.json pnpm-lock.yaml ./

RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ".npmrc" && \
Expand All @@ -29,7 +29,7 @@ FROM base AS build

ENV CI=true

RUN apk update && apk add --no-cache dumb-init=1.2.5-r3
RUN apk update && apk add --no-cache dumb-init=1.2.5-r3 && npm install -g pnpm@9

COPY package.json pnpm-lock.yaml ./
RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ".npmrc" && \
Expand Down

0 comments on commit 89f176c

Please sign in to comment.