Skip to content

Commit

Permalink
fix: Update Dockerfile node version - fix missing dependencies (#2349)
Browse files Browse the repository at this point in the history
There were some utilities missing: python, make, g++. Also node version was too old - current node builds without problems.
  • Loading branch information
qqalexqq authored Apr 5, 2021
1 parent 6d7d7da commit 2f443fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2f443fa

Please sign in to comment.