-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (18 loc) · 805 Bytes
/
Dockerfile
File metadata and controls
23 lines (18 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# pull nvidia cuda 10 ubuntu 18 base image
FROM nvidia/cuda:10.2-cudnn7-runtime-ubuntu18.04
# update apt and install wget and cv2 required dlls
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y wget libsm6 libxext6 libxrender-dev
# install miniconda
ENV PATH="/root/miniconda3/bin:${PATH}"
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
# copy project files to container and chage working directory
ENV PROJECT_DIR="/ObjectPermanence"
COPY . $PROJECT_DIR
WORKDIR $PROJECT_DIR
# create a conda environment with the required packages and activate it
RUN conda env update --name base -f environment.yml
ENTRYPOINT ["/bin/bash"]