Refactor Dockerfile to simplify dependency installation by removing package-lock.json handling

This commit is contained in:
Aculix Technologies 2025-10-16 13:45:57 +05:30
parent 0570969386
commit 24018ab582

View File

@ -6,8 +6,7 @@ WORKDIR /app
COPY package*.json ./ COPY package*.json ./
# Install dependencies with proper optional dependency handling for Alpine/musl # Install dependencies with proper optional dependency handling for Alpine/musl
RUN rm -f package-lock.json && \ RUN npm install --include=optional
npm install --include=optional
# Copy source code # Copy source code
COPY . . COPY . .