andreped commited on
Commit
3e0fee7
1 Parent(s): 430fad4

Fix: Update to node:18.16.1 in Dockerfile

Browse files

The original OHIF repository added this update, due to a deprecancy issue with node, see [here](https://github.com/OHIF/Viewers/blob/master/Dockerfile#L24).

I added the same fix to my HF Space deployment and it works great, see [here](https://github.com/andreped/ohif4hf/pull/11/files), so I believe it should work for this Space as well.

Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM node:16.15.0-slim as json-copier
2
 
3
  RUN mkdir /usr/src/app
4
  WORKDIR /usr/src/app
@@ -18,7 +18,7 @@ RUN git clone --recursive https://github.com/OHIF/Viewers.git .
18
  #RUN find platform \! -name "package.json" -mindepth 2 -maxdepth 2 -print | xargs rm -rf
19
 
20
  # Copy Files
21
- FROM node:16.15.0-slim as builder
22
  RUN apt-get update && apt-get install -y build-essential python3
23
  RUN mkdir /usr/src/app
24
  WORKDIR /usr/src/app
 
1
+ FROM node:18.16.1-slim as json-copier
2
 
3
  RUN mkdir /usr/src/app
4
  WORKDIR /usr/src/app
 
18
  #RUN find platform \! -name "package.json" -mindepth 2 -maxdepth 2 -print | xargs rm -rf
19
 
20
  # Copy Files
21
+ FROM node:18.16.1-slim as builder
22
  RUN apt-get update && apt-get install -y build-essential python3
23
  RUN mkdir /usr/src/app
24
  WORKDIR /usr/src/app