Skip to content

Commit 5c7f3b5

Browse files
authored
Remove package-lock.json (#247)
remove package-lock.json Signed-off-by: Jack Luar <jluar@precisioninno.com>
1 parent ba0d150 commit 5c7f3b5

File tree

2 files changed

+2
-7447
lines changed

2 files changed

+2
-7447
lines changed

frontend/nextjs-frontend/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
# Install dependencies only when needed
22
FROM node:22-alpine AS deps
33
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
4+
COPY package.json yarn.lock ./
5+
RUN yarn install --frozen-lockfile
96

107
# Rebuild the source code only when needed
118
FROM node:22-alpine AS builder

0 commit comments

Comments
 (0)