From bd9f1f711f1765728afb16514682035a40a8cbb5 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..9cff143 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 install --verbose --foreground-scripts --arch=x64 --platform=linux --libc=glibc sharp && npm run build RUN echo "" > .env