We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba0d150 commit 5c7f3b5Copy full SHA for 5c7f3b5
frontend/nextjs-frontend/Dockerfile
@@ -1,11 +1,8 @@
1
# Install dependencies only when needed
2
FROM node:22-alpine AS deps
3
WORKDIR /app
4
-COPY package.json package-lock.json* yarn.lock* ./
5
-RUN \
6
- if [ -f yarn.lock ]; then yarn install --frozen-lockfile; \
7
- elif [ -f package-lock.json ]; then npm ci; \
8
- else npm install; fi
+COPY package.json yarn.lock ./
+RUN yarn install --frozen-lockfile
9
10
# Rebuild the source code only when needed
11
FROM node:22-alpine AS builder
0 commit comments