update pnpm in dockerfile

This commit is contained in:
Amruth Pillai
2023-04-05 09:25:28 +02:00
parent 36bf729161
commit 9c0c6076b3
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ FROM node:lts-alpine AS base
WORKDIR /app WORKDIR /app
RUN apk add --no-cache g++ git curl make python3 libc6-compat \ RUN apk add --no-cache g++ git curl make python3 libc6-compat \
&& curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm && curl -fsSL https://get.pnpm.io/install.sh | node - add --global pnpm
FROM base as dependencies FROM base as dependencies

View File

@ -3,7 +3,7 @@ FROM node:lts-alpine AS base
WORKDIR /app WORKDIR /app
RUN apk add --no-cache g++ git curl make python3 libc6-compat \ RUN apk add --no-cache g++ git curl make python3 libc6-compat \
&& curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm && curl -fsSL https://get.pnpm.io/install.sh | node - add --global pnpm
FROM base AS dependencies FROM base AS dependencies
@ -29,7 +29,7 @@ WORKDIR /app
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y curl build-essential \ && apt-get install -y curl build-essential \
&& curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm && curl -fsSL https://get.pnpm.io/install.sh | node - add --global pnpm
COPY --from=builder /app/package.json /app/pnpm-*.yaml /app/turbo.json ./ COPY --from=builder /app/package.json /app/pnpm-*.yaml /app/turbo.json ./
COPY --from=builder /app/server/package.json ./server/package.json COPY --from=builder /app/server/package.json ./server/package.json