From b59634482f129913771e7d5a57c497dd1f47d012 Mon Sep 17 00:00:00 2001 From: Tyler Levine Date: Mon, 16 Mar 2020 12:07:59 -0700 Subject: [PATCH] Install latest npm in container before express 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: https://github.com/npm/cli/issues/613 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 027ad81fb7..2adaef5504 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM node:10 AS builder MAINTAINER Tyler Levine 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