From ede707ed24ddac38ec266bdd8e14c06d5894e91d Mon Sep 17 00:00:00 2001 From: Maksim Eltyshev Date: Sat, 21 May 2022 21:01:43 +0500 Subject: [PATCH] fix: Fix dependencies installation for multi-arch images --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d36074a24..22d2c60f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,8 +16,13 @@ WORKDIR /app COPY server/.npmrc server/package.json server/package-lock.json ./ -RUN npm install npm@latest --global \ - && npm install --production +RUN apk add \ + g++ make python3 \ + --virtual node-pre-gyp-dependencies \ + --no-cache \ + && npm install npm@latest --global \ + && npm install --production \ + && apk del node-pre-gyp-dependencies --purge COPY docker-start.sh start.sh COPY server .