Update dockerfile a bit
This commit is contained in:
parent
d3d05c42bc
commit
786d76bdd0
@ -6,14 +6,14 @@ services:
|
|||||||
- "27017:27017"
|
- "27017:27017"
|
||||||
|
|
||||||
viewer:
|
viewer:
|
||||||
#image: ohifviewer:latest
|
image: ohif/viewer:latest
|
||||||
build: .
|
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
links:
|
links:
|
||||||
- mongo
|
- mongo
|
||||||
env_file: dockersupport/ohifviewer.env # TODO: Doesn't look like METEOR Settings are being used properly?
|
|
||||||
environment:
|
environment:
|
||||||
- MONGO_URL=mongodb://mongo:27017/ohif
|
- MONGO_URL=mongodb://mongo:27017/ohif
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "localpacs:192.168.1.11"
|
- "pacsIP:192.168.1.11"
|
||||||
|
volumes:
|
||||||
|
- /opt/docker/ohif-viewer/app.json:/app/app.json
|
||||||
17
dockerfile
17
dockerfile
@ -15,11 +15,12 @@ RUN curl https://install.meteor.com/ | sh
|
|||||||
# Create a non-root user
|
# Create a non-root user
|
||||||
RUN useradd -ms /bin/bash user
|
RUN useradd -ms /bin/bash user
|
||||||
USER user
|
USER user
|
||||||
|
RUN mkdir /home/user/Viewers
|
||||||
|
COPY OHIFViewer/package.json /home/user/Viewers/OHIFViewer/
|
||||||
ADD --chown=user:user . /home/user/Viewers
|
ADD --chown=user:user . /home/user/Viewers
|
||||||
|
|
||||||
WORKDIR /home/user/Viewers/OHIFViewer
|
WORKDIR /home/user/Viewers/OHIFViewer
|
||||||
|
|
||||||
RUN meteor npm install
|
|
||||||
ENV METEOR_PACKAGE_DIRS=../Packages
|
ENV METEOR_PACKAGE_DIRS=../Packages
|
||||||
RUN meteor build --directory /home/user/app
|
RUN meteor build --directory /home/user/app
|
||||||
WORKDIR /home/user/app/bundle/programs/server
|
WORKDIR /home/user/app/bundle/programs/server
|
||||||
@ -27,24 +28,18 @@ RUN npm install --production
|
|||||||
|
|
||||||
# Second stage of multi-stage build
|
# Second stage of multi-stage build
|
||||||
# Creates a slim production image for the node.js application
|
# Creates a slim production image for the node.js application
|
||||||
#
|
|
||||||
# TODO: Switch to node:8.10.0-alpine for size purposes. I was getting Segmentation Faults from the node
|
|
||||||
# process. There are probably some minor changes to be made to ensure it works.
|
|
||||||
FROM node:8.10.0-slim
|
FROM node:8.10.0-slim
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
COPY --from=builder /home/user/app .
|
|
||||||
|
|
||||||
RUN npm install -g pm2
|
RUN npm install -g pm2
|
||||||
|
|
||||||
ADD dockersupport/app.json .
|
WORKDIR /app
|
||||||
|
COPY --from=builder /home/user/app .
|
||||||
|
COPY dockersupport/app.json .
|
||||||
|
|
||||||
ENV ROOT_URL http://localhost:3000
|
ENV ROOT_URL http://localhost:3000
|
||||||
ENV PORT 3000
|
ENV PORT 3000
|
||||||
ENV NODE_ENV development
|
ENV NODE_ENV production
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
CMD ["pm2-runtime", "app.json"]
|
CMD ["pm2-runtime", "app.json"]
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,34 @@
|
|||||||
"script" : "main.js",
|
"script" : "main.js",
|
||||||
"watch" : true,
|
"watch" : true,
|
||||||
"merge_logs" : true,
|
"merge_logs" : true,
|
||||||
"cwd" : "/app/bundle/"
|
"cwd" : "/app/bundle/",
|
||||||
|
"env": {
|
||||||
|
"METEOR_SETTINGS": {
|
||||||
|
"servers": {
|
||||||
|
"dicomWeb": [
|
||||||
|
{
|
||||||
|
"name": "Orthanc",
|
||||||
|
"wadoUriRoot": "http://pacsIP:8042/wado",
|
||||||
|
"qidoRoot": "http://pacsIP:8042/dicom-web",
|
||||||
|
"wadoRoot": "http://pacsIP:8042/dicom-web",
|
||||||
|
"qidoSupportsIncludeField": false,
|
||||||
|
"imageRendering": "wadouri",
|
||||||
|
"thumbnailRendering": "wadors",
|
||||||
|
"requestOptions": {
|
||||||
|
"auth": "orthanc:orthanc",
|
||||||
|
"logRequests": true,
|
||||||
|
"logResponses": false,
|
||||||
|
"logTiming": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"defaultServiceType": "dicomWeb",
|
||||||
|
"public": {},
|
||||||
|
"proxy": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
@ -1,36 +0,0 @@
|
|||||||
METEOR_SETTINGS = "{
|
|
||||||
"servers": {
|
|
||||||
"dicomWeb": [
|
|
||||||
{
|
|
||||||
"name": "Orthanc",
|
|
||||||
"wadoUriRoot": "http://localpacs:8042/wado",
|
|
||||||
"qidoRoot": "http://localpacs:8042/dicom-web",
|
|
||||||
"wadoRoot": "http://localpacs:8042/dicom-web",
|
|
||||||
"qidoSupportsIncludeField": false,
|
|
||||||
"imageRendering": "wadouri",
|
|
||||||
"thumbnailRendering": "wadors",
|
|
||||||
"requestOptions": {
|
|
||||||
"auth": "orthanc:orthanc",
|
|
||||||
"logRequests": true,
|
|
||||||
"logResponses": false,
|
|
||||||
"logTiming": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"defaultServiceType": "dicomWeb",
|
|
||||||
"dropCollections": true,
|
|
||||||
"public": {
|
|
||||||
"verifyEmail": false,
|
|
||||||
"ui": {
|
|
||||||
"studyListFunctionsEnabled": true,
|
|
||||||
"leftSidebarOpen": false,
|
|
||||||
"displaySetNavigationLoopOverSeries": false,
|
|
||||||
"displaySetNavigationMultipleViewports": true,
|
|
||||||
"autoPositionMeasurementsTextCallOuts": "TRLB"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"proxy": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
}"
|
|
||||||
Loading…
Reference in New Issue
Block a user