-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sachidanand Alle <[email protected]>
- Loading branch information
1 parent
9e7a5e2
commit 029e9ac
Showing
4 changed files
with
10 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,19 +14,18 @@ | |
# to use different version of MONAI pass `--build-arg MONAI_IMAGE=...` | ||
|
||
ARG MONAI_IMAGE=projectmonai/monai:1.4.0 | ||
|
||
ARG NODE_IMAGE=node:slim | ||
|
||
FROM ${NODE_IMAGE} as ohifbuild | ||
ADD . /opt/monailabel | ||
FROM ${NODE_IMAGE} AS ohifbuild | ||
ADD ./plugins/ohifv3 /opt/ohifv3 | ||
RUN apt update -y && apt install -y git | ||
RUN cd /opt/monailabel/plugins/ohifv3 && ./build.sh | ||
RUN cd /opt/ohifv3 && ./build.sh /opt/ohifv3/release | ||
|
||
FROM ${MONAI_IMAGE} as build | ||
FROM ${MONAI_IMAGE} AS build | ||
LABEL maintainer="[email protected]" | ||
|
||
ADD . /opt/monailabel/ | ||
COPY --from=ohifbuild /opt/monailabel/monailabel/endpoints/static/ohif /opt/monailabel/monailabel/endpoints/static/ohif | ||
COPY --from=ohifbuild /opt/ohifv3/release /opt/monailabel/monailabel/endpoints/static/ohif | ||
RUN python -m pip install --upgrade --no-cache-dir pip setuptools wheel twine \ | ||
&& cd /opt/monailabel \ | ||
&& BUILD_OHIF=false python setup.py sdist bdist_wheel --build-number $(date +'%Y%m%d%H%M') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters