From a62ec1fc701bdfacd16aed6eec26bead13dbb2ee Mon Sep 17 00:00:00 2001 From: mukesh13 Date: Mon, 23 Jun 2025 21:15:25 +0530 Subject: [PATCH] Dockerupdate --- Dockerfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 55bcdd5..de75d5e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,13 +6,24 @@ FROM node:lts AS development # Set working directory 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.json /app/package.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 +# Then install sharp properly for the current platform +RUN npm install --platform=linux --arch=x64 sharp + COPY . /app ENV CI=true