-
Notifications
You must be signed in to change notification settings - Fork 37
/
Dockerfile
39 lines (34 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM node:18.16 as react
WORKDIR /app
COPY ./FrontEnd .
RUN yarn install
RUN yarn build
FROM node:16.17 as ohif
RUN apt-get update -qy && \
apt-get install -y --no-install-recommends apt-utils\
git
WORKDIR /ohif
RUN git clone --depth 1 https://github.com/OHIF/Viewers.git
RUN cd Viewers && yarn install && QUICK_BUILD=true PUBLIC_URL=/viewer-ohif/ yarn run build
FROM alpine as stone
RUN apk --no-cache add wget
RUN apk add --update zip
RUN wget https://lsb.orthanc-server.com/stone-webviewer/2.5/wasm-binaries.zip
RUN mkdir /stone
RUN unzip wasm-binaries.zip -d /stone
FROM node:18.16
WORKDIR /OrthancToolsJs
RUN mkdir build
COPY --from=react /app/dist ./build/
COPY --from=ohif /ohif/Viewers/platform/app/dist ./build/viewer-ohif/
COPY --from=stone /stone/wasm-binaries/StoneWebViewer ./build/viewer-stone/
COPY --from=react /app/dist/viewer-ohif/app-config.js ./build/viewer-ohif/
COPY --from=react /app/dist/viewer-stone/configuration.json ./build/viewer-stone/
COPY ./BackEnd .
RUN yarn install --only=prod
EXPOSE 4000
ENV OrthancAddress http://localhost
ENV OrthancPort 8042
ENV OrthancUsername orthanc
ENV OrthancPassword orthanc
CMD [ "yarn", "start" ]