From 2f443fa2efa223ac0fcdf238eee834c6a4ee3fc1 Mon Sep 17 00:00:00 2001 From: qqalexqq Date: Mon, 5 Apr 2021 10:47:57 +0300 Subject: [PATCH] fix: Update Dockerfile node version - fix missing dependencies (#2349) There were some utilities missing: python, make, g++. Also node version was too old - current node builds without problems. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f989e6881..6d157ede7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ # Stage 1: Build the application # docker build -t ohif/viewer:latest . -FROM node:10.16.3-slim as builder +FROM node:15.13.0-slim as builder RUN mkdir /usr/src/app WORKDIR /usr/src/app @@ -39,6 +39,7 @@ COPY package.json /usr/src/app/package.json COPY postcss.config.js /usr/src/app/postcss.config.js COPY yarn.lock /usr/src/app/yarn.lock +RUN apt-get update && apt-get install -y python make g++ # Run the install before copying the rest of the files RUN yarn config set workspaces-experimental true RUN yarn install