From b0c56f65c46b44fbb43da86c168bf5d8427e3043 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Mon, 24 Feb 2025 14:05:07 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20for=20libsharp=20for=20?= =?UTF-8?q?arm64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4c2f202..84cdb78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,10 @@ RUN apt-get update && apt-get install -y \ xz-utils \ curl \ bash \ - software-properties-common + software-properties-common \ + build-essential \ + g++ \ + python3-dev # Install p7zip RUN apt-get update && apt-get install -y p7zip @@ -45,6 +48,11 @@ COPY tsconfig.json ./ # Install application dependencies RUN npm install + +# Install sharp with platform-specific flags +RUN npm install --platform=linux --arch=x64 sharp + +# Install global dependencies RUN npm install -g typescript ts-node # Copy the rest of the application files