diff --git a/Dockerfile b/Dockerfile index d36074a2..22d2c60f 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 .