-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
28 lines (23 loc) · 980 Bytes
/
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
FROM girder/slicer_cli_web
MAINTAINER Deepak Roy Chittajallu <deepak.chittajallu@kitware.com>
# Insert commands to install any system pre-requisites and libraries here
# Copy files of the plugin into the docker container
ENV SLICER_CLI_WEB_PLUGIN_PATH /opt/slicer_cli_web_plugin
COPY . $SLICER_CLI_WEB_PLUGIN_PATH
WORKDIR $SLICER_CLI_WEB_PLUGIN_PATH/Applications
# pip install python package dependencies in requirments.txt
RUN pip install -U -r requirements.txt
# Build C++ CLIs (Skip if you don't have C++ CLIs)
RUN mkdir -p build && cd build && \
echo "${PATH}" && \
which cmake && \
cmake \
-G Ninja \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DSlicerExecutionModel_DIR:PATH=$BUILD_PATH/SEM-build \
../ && \
ninja && \
cd .. && \
rm -rf build
# use entrypoint of slicer_cli_web to expose slicer CLIS of this plugin on web
ENTRYPOINT ["/build/miniconda/bin/python", "/build/slicer_cli_web/server/cli_list_entrypoint.py"]