fix: use npm install instead of npm ci in Dockerfile
All checks were successful
Build & Push Docker Image / build-and-push (push) Successful in 46s
All checks were successful
Build & Push Docker Image / build-and-push (push) Successful in 46s
npm ci fails with optional platform-specific dependencies (@emnapi/core, @emnapi/runtime) that are not recorded in the lock file for Alpine Linux. npm install handles optional dependencies correctly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -7,7 +7,7 @@ WORKDIR /app
|
|||||||
|
|
||||||
# Install dependencies first (better layer caching)
|
# Install dependencies first (better layer caching)
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci
|
RUN npm install
|
||||||
|
|
||||||
# Copy source and build
|
# Copy source and build
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
Reference in New Issue
Block a user