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.
This commit is contained in:
qqalexqq authored and GitHub committed 2021-04-05 09:47:57 +02:00
1 parent 6d7d7da287
commit 2f443fa2ef
1 file changed
+2 -1
+2 -1
View File
@@ -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