forked from mala-project/mala
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (24 loc) · 869 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 continuumio/miniconda3:22.11.1
LABEL maintainer="[email protected]"
# Update the image and install essential packages
RUN apt-get --allow-releaseinfo-change update && apt-get upgrade -y && \
apt-get install --no-install-recommends -y \
build-essential \
libz-dev \
swig \
unzip \
wget \
cmake && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Choose 'cpu' or 'gpu'
ARG DEVICE=cpu
COPY install/mala_${DEVICE}_environment.yml .
RUN conda env create -f mala_${DEVICE}_environment.yml && rm -rf /opt/conda/pkgs/*
# Install optional MALA dependencies into Conda environment with pip
RUN /opt/conda/envs/mala-${DEVICE}/bin/pip install --no-input --no-cache-dir \
pytest \
pytest-cov \
oapackage==2.6.8 \
pqkmeans
RUN echo "source activate mala-${DEVICE}" > ~/.bashrc
ENV PATH /opt/conda/envs/mala-${DEVICE}/bin:$PATH