From 59d440913145439c81559e52146cf02586507267 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 21 Aug 2022 00:34:17 +0200 Subject: [PATCH] removed other than pnpm --- templates/build_release.Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/templates/build_release.Dockerfile b/templates/build_release.Dockerfile index 6d15a20..e0c11a7 100644 --- a/templates/build_release.Dockerfile +++ b/templates/build_release.Dockerfile @@ -2,16 +2,12 @@ FROM node:16-alpine AS deps # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. RUN apk add --no-cache libc6-compat +RUN yarn global add pnpm WORKDIR /app # Install dependencies based on the preferred package manager -COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ -RUN \ - if [ -f yarn.lock ]; then yarn --frozen-lockfile; \ - elif [ -f package-lock.json ]; then npm ci; \ - elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i; \ - else echo "Lockfile not found." && exit 1; \ - fi +COPY package.json pnpm-lock.yaml* ./ +RUN pnpm i # Rebuild the source code only when needed