Dockerupdate

This commit is contained in:
mukesh13
2025-06-23 21:15:25 +05:30
parent 0a4cd98984
commit a62ec1fc70

View File

@ -6,13 +6,24 @@ FROM node:lts AS development
# Set working directory # Set working directory
WORKDIR /app WORKDIR /app
# Install system dependencies needed for sharp
RUN apt-get update && apt-get install -y \
libvips-dev \
python3 \
make \
g++ \
&& rm -rf /var/lib/apt/lists/*
# Copy package files # Copy package files
COPY package.json /app/package.json COPY package.json /app/package.json
COPY package-lock.json /app/package-lock.json COPY package-lock.json /app/package-lock.json
# Install dependencies without downloading binaries (avoids sharp timeout) # Install dependencies normally first
RUN npm ci --legacy-peer-deps --ignore-scripts RUN npm ci --legacy-peer-deps --ignore-scripts
# Then install sharp properly for the current platform
RUN npm install --platform=linux --arch=x64 sharp
COPY . /app COPY . /app
ENV CI=true ENV CI=true