-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (22 loc) · 799 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (22 loc) · 799 Bytes
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
29
30
31
32
33
FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu20.04
COPY . /app
WORKDIR /app
# Install base utilities
RUN apt-get update \
&& apt-get install -y build-essential \
&& apt-get install -y wget \
&& apt-get clean \
&& apt-get -y install sudo \
&& rm -rf /var/lib/apt/lists/*
# RUN apt-get update && apt-get install -y python3.9 python3.9-dev
# Install miniconda
ENV CONDA_DIR /opt/conda
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda
# Put conda in path so we can use conda activate
ENV PATH=$CONDA_DIR/bin:$PATH
RUN conda install git
RUN export PATH="$HOME/opt/git/bin:$PATH"
RUN conda env create -f conda_environment.yml
RUN conda init
RUN conda activate unimatch