fix: update Dockerfile to use npm install instead of npm ci
- Changed the command in the Dockerfile to use `npm install` when a package-lock.json file is present, ensuring compatibility with the current setup.
This commit is contained in:
@@ -10,7 +10,7 @@ WORKDIR /app
|
||||
# Install dependencies based on the preferred package manager
|
||||
COPY package.json package-lock.json* ./
|
||||
RUN \
|
||||
if [ -f package-lock.json ]; then npm ci; \
|
||||
if [ -f package-lock.json ]; then npm install; \
|
||||
else echo "Lockfile not found." && exit 1; \
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user