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
|
# Install dependencies based on the preferred package manager
|
||||||
COPY package.json package-lock.json* ./
|
COPY package.json package-lock.json* ./
|
||||||
RUN \
|
RUN \
|
||||||
if [ -f package-lock.json ]; then npm ci; \
|
if [ -f package-lock.json ]; then npm install; \
|
||||||
else echo "Lockfile not found." && exit 1; \
|
else echo "Lockfile not found." && exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user