diff --git a/Dockerfile b/Dockerfile index c234f3b..a15f09f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,14 +7,14 @@ WORKDIR /app # Copy cached files COPY node_modules /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 --frozen-lockfile; \ - else echo "Lockfile not found." && exit 1; \ - fi +# # 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 --frozen-lockfile; \ +# else echo "Lockfile not found." && exit 1; \ +# fi # Rebuild the source code only when needed FROM node:18-alpine AS builder