-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathDockerfile
23 lines (19 loc) · 820 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
# 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/COMP0197.git workspace/comp0197
WORKDIR /workspace
# create the tutorial/coursework conda environment "comp0197"
ARG CONDA_ENV="comp0197"
RUN conda create -n $CONDA_ENV python=3.9 tensorflow=2.4 pytorch=1.7 torchvision=0.8 \
&& echo "source activate $CONDA_ENV" > ~/.bashrc