From 8f572ed10cf0ef2a33bac5882bcaabf6a430d19f Mon Sep 17 00:00:00 2001 From: Fayorg Date: Mon, 4 Dec 2023 14:30:35 +0100 Subject: [PATCH] fix: dockerfile errors --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4957510..8c78f1a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,9 @@ FROM node:18-alpine AS deps RUN apk add --no-cache libc6-compat WORKDIR /app -COPY .npmrc package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ +COPY package.json package-lock.json* ./ 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; \ + if [ -f package-lock.json ]; then npm ci; \ else echo "Lockfile not found." && exit 1; \ fi