From 09d7fa2772408ae6b3770edbe2a5dfee0ac5f7fb Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Mon, 24 Feb 2025 15:20:54 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=93=20Attempting=20to=20get=20sharp=20?= =?UTF-8?q?installed=20in=20the=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 84cdb78..f47c145 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,8 +49,9 @@ COPY tsconfig.json ./ # Install application dependencies RUN npm install -# Install sharp with platform-specific flags -RUN npm install --platform=linux --arch=x64 sharp +# Clear npm cache and install sharp with build-from-source +RUN npm cache clean --force +RUN npm install sharp --build-from-source # Install global dependencies RUN npm install -g typescript ts-node