forked from ANTsX/ANTsPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (18 loc) · 658 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This Dockerfile supports amd64,ppc64le
# Note: QEMU emulated ppc64le build might take ~6 hours
# Use conda to resolve dependencies cross-platform
FROM fnndsc/conda:4.9.2 as builder
# install libpng to system for cross-architecture support
# https://github.com/ANTsX/ANTs/issues/1069#issuecomment-681131938
RUN apt-get update && apt-get install -y build-essential git cmake libpng-dev
WORKDIR /usr/local/src
COPY environment.yml .
RUN conda env update -n base
COPY . .
# number of parallel make jobs
ARG j=4
RUN pip --no-cache-dir -v install .
# optimize layers
FROM debian:buster
COPY --from=builder /opt/conda /opt/conda
ENV PATH=/opt/conda/bin:$PATH