forked from FenTechSolutions/CausalDiscoveryToolbox
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
19 lines (18 loc) · 872 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM divkal/cdt-env-base:19.05
MAINTAINER Diviyan Kalainathan <diviyan@lri.fr>
LABEL description="Docker image for the Causal Discovery Toolbox"
ARG python
ARG spy
RUN mkdir -p /CDT
COPY . /CDT
RUN cd /CDT && \
apt-get update --allow-unauthenticated && \
apt-get -q install "python${python}" "python${python}-dev" python3-pip python3-setuptools -y && \
rm /usr/bin/python3 && ln -s /usr/bin/python${python} /usr/bin/python3 && \
python3 -m pip install https://download.pytorch.org/whl/cpu/torch-1.1.0-cp"${spy}"-cp"${spy}"m-linux_x86_64.whl && \
python3 -m pip install https://download.pytorch.org/whl/cpu/torchvision-0.3.0-cp"${spy}"-cp"${spy}"m-linux_x86_64.whl&& \
python3 -m pip install -r requirements.txt && \
python3 -m pip install pytest pytest-cov && \
python3 -m pip install codecov && \
python3 setup.py install
CMD /bin/sh