-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
25 lines (21 loc) · 883 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
# Dockerfile for the module tutorial and coursework
FROM ubuntu:20.04
# git and conda
RUN apt-get update && apt-get install -y wget git \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh
ARG PATH="/root/miniconda3/bin:$PATH"
RUN conda init bash
ENV PATH="/root/miniconda3/bin:$PATH"
# clone the repo in "/workspace"
RUN git clone https://github.com/YipengHu/MPHY0043.git workspace/mphy0043
WORKDIR /workspace
# create the tutorial/coursework conda environment "mphy0043"
ARG CONDA_ENV="mphy0043"
RUN conda create -n $CONDA_ENV tensorflow==2.9 \
&& conda activate mphy0043 \
&& pip install notebook matplotlib av "monai[nibabel, gdown, ignite]"
&& echo "source activate $CONDA_ENV" > ~/.bashrc