Remove package-lock.json and update Dockerfile to install dependencies with optional handling for Alpine/musl

This commit is contained in:
Aculix Technologies
2025-10-16 13:43:05 +05:30
parent 86b985be27
commit 0570969386
2 changed files with 3 additions and 561 deletions
+3 -2
View File
@@ -5,8 +5,9 @@ WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies with proper optional dependency handling
RUN npm install
# Install dependencies with proper optional dependency handling for Alpine/musl
RUN rm -f package-lock.json && \
npm install --include=optional
# Copy source code
COPY . .