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

Ticket: BG-19035
  • Loading branch information
Tyler Levine committed Mar 16, 2020
1 parent 36fdf26 commit bb1e008
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
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 bb1e008

Please sign in to comment.