Skip to content

Commit

Permalink
Install latest npm in container before express
Browse files Browse the repository at this point in the history
The default version of npm in the docker base image fails during npm
prune with `npm ERR! invalid bin entry for package msgpack-lite`.

This is a known and fixed bug in npm: npm/cli#613
  • Loading branch information
Tyler Levine committed Mar 16, 2020
1 parent 36fdf26 commit b596344
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM node:10 AS builder
MAINTAINER Tyler Levine <tyler@bitgo.com>
COPY --chown=node:node . /tmp/bitgo/
WORKDIR /tmp/bitgo/modules/express
RUN npm install npm@latest -g
USER node
RUN npm ci && npm prune --production
FROM node:10-alpine
Expand Down

0 comments on commit b596344

Please sign in to comment.