generated from FNNDSC/python-chrisapp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00cc0a4
commit 8b18853
Showing
4 changed files
with
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
FROM docker.io/fnndsc/pl-fetal-surface-extract:base-1 | ||
FROM docker.io/fnndsc/pl-fetal-surface-extract:base-2 | ||
|
||
LABEL org.opencontainers.image.authors="Jennings Zhang <[email protected]>" \ | ||
org.opencontainers.image.title="pl-fetal-surface-extract" \ | ||
org.opencontainers.image.description="Fetal brain MRI surface extraction using CIVET marching-cubes" | ||
|
||
WORKDIR /usr/local/src/pl-fetal-surface-extract | ||
RUN \ | ||
--mount=type=cache,sharing=private,target=/home/mambauser/.mamba/pkgs,uid=57439,gid=57439 \ | ||
--mount=type=cache,sharing=private,target=/opt/conda/pkgs,uid=57439,gid=57439 \ | ||
micromamba install -y -n base -c conda-forge python=3.11.5 numpy=1.26.0 | ||
|
||
RUN conda install -c conda-forge -y numpy=1.22.3 | ||
ARG SRCDIR=/home/mambauser/pl-fetal-surface-extract | ||
ARG MAMBA_DOCKERFILE_ACTIVATE=1 | ||
WORKDIR ${SRCDIR} | ||
|
||
COPY requirements.txt . | ||
RUN pip install -r requirements.txt | ||
COPY --chown=57439:57439 requirements.txt . | ||
RUN --mount=type=cache,sharing=private,target=/home/mambauser/.cache/pip,uid=57439,gid=57439 \ | ||
pip install -r requirements.txt | ||
|
||
COPY . . | ||
RUN pip install . | ||
COPY --chown=mambauser:mambauser . . | ||
ARG extras_require=none | ||
RUN pip install ".[${extras_require}]" \ | ||
&& cd / && rm -rf ${SRCDIR} | ||
WORKDIR / | ||
|
||
CMD ["extract_cp", "--help"] | ||
CMD ["extract_cp"] |
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
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ chris_plugin==0.3.1 | |
pycivet==0.1.2 | ||
loguru==0.6.0 | ||
pybicpl==0.5.1 | ||
numpy~=1.22 | ||
numpy~=1.26.0 |