Skip to content

Commit

Permalink
fix: Fix dependencies installation for multi-arch images
Browse files Browse the repository at this point in the history
  • Loading branch information
meltyshev committed May 21, 2022
1 parent 81052e1 commit ede707e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down

0 comments on commit ede707e

Please sign in to comment.