@@ -8,13 +8,13 @@ WORKDIR /app
88
99# Install dependencies based on the preferred package manager
1010COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
11- RUN \
12- if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
13- elif [ -f package-lock.json ]; then npm ci; \
14- elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
15- else echo "Lockfile not found." && exit 1; \
16- fi
17-
11+ # RUN \
12+ # if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
13+ # elif [ -f package-lock.json ]; then npm ci; \
14+ # elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
15+ # else echo "Lockfile not found." && exit 1; \
16+ # fi
17+ RUN npm install
1818
1919# Rebuild the source code only when needed
2020FROM base AS builder
@@ -26,13 +26,15 @@ COPY . .
2626# Learn more here: https://nextjs.org/telemetry
2727# Uncomment the following line in case you want to disable telemetry during the build.
2828# ENV NEXT_TELEMETRY_DISABLED 1
29-
30- RUN \
31- if [ -f yarn.lock ]; then yarn run build; \
32- elif [ -f package-lock.json ]; then npm run build; \
33- elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \
34- else echo "Lockfile not found." && exit 1; \
35- fi
29+ #
30+ # RUN \
31+ # if [ -f yarn.lock ]; then yarn run build; \
32+ # elif [ -f package-lock.json ]; then npm run build; \
33+ # elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \
34+ # else echo "Lockfile not found." && exit 1; \
35+ # fi
36+
37+ RUN npm run build
3638
3739# Production image, copy all the files and run next
3840FROM base AS runner
0 commit comments