From 29fa119a99f2e5ea5d6574178306bcac450bbbfb Mon Sep 17 00:00:00 2001 From: Louis Grasset Date: Wed, 29 Nov 2023 02:21:00 +0100 Subject: [PATCH] fix(docker): install `sharp` with the right arch --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 055d206..aa5eeef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ COPY scripts/ /app/scripts COPY package.json package-lock.json tsconfig.json .eslintrc.json /app/ RUN npm run prebuild -RUN npm ci --ignore-scripts && npm run build +RUN npm ci --ignore-scripts && npm rebuild --platform=linux --arch=x64 --libc=glibc sharp && npm run build RUN echo "" > .env