generated from FNNDSC/python-chrisapp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (18 loc) · 859 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
FROM docker.io/fnndsc/pl-mni2common:base-2 AS base
FROM base AS mni2mz3-installer
RUN apt-get update \
&& apt-get install -y curl
RUN curl --proto '=https' --tlsv1.2 -LsSf 'https://github.com/FNNDSC/mni2mz3/releases/download/v1.0.0-rc.5/installer.sh' | bash
FROM base
LABEL org.opencontainers.image.authors="Jennings.Zhang <jennings.zhang@childrens.harvard.edu>" \
org.opencontainers.image.title="pl-mnc2common" \
org.opencontainers.image.description="A ChRIS plugin to convert MINC volume, .txt surface data, and MNI .obj surface file formats to NIFTI and MZ3."
ARG SRCDIR=/usr/local/src/pl-mni2common
WORKDIR ${SRCDIR}
COPY . .
ARG extras_require=none
RUN pip install ".[${extras_require}]" \
&& cd / && rm -rf ${SRCDIR}/*
WORKDIR /
COPY --from=mni2mz3-installer /usr/local/bin/mni2mz3 /usr/local/bin/mni2mz3
CMD ["mni2common"]