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 ./
# Install dependencies with proper optional dependency handling for Alpine/musl
RUN rm -f package-lock.json && \
npm install --include=optional
RUN npm install --include=optional
# Copy source code
COPY . .