From bd628663405f2b74cdc8fa5d7a2e8c7c78593aab Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Tue, 25 Feb 2025 14:18:44 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Yet=20another=20fix=20for=20shar?= =?UTF-8?q?p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ee7574f..caa6b97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,9 +56,8 @@ COPY tsconfig.json ./ # Install application dependencies RUN npm install -# Clear npm cache and install sharp with build-from-source -RUN npm cache clean --force -RUN npm install --force @img/sharp-linuxmusl-arm64 +# Install sharp with proper platform configuration +RUN npm install --force --sharp --platform=linux/arm64 # Install global dependencies RUN npm install -g typescript ts-node