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:
Julien Froidefond
2025-09-18 20:44:47 +02:00
parent 9c2c719384
commit 8b98c467d0

View File

@@ -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