-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (35 loc) · 949 Bytes
/
Dockerfile
File metadata and controls
41 lines (35 loc) · 949 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
34
35
36
37
38
39
40
41
FROM pytorch/pytorch:1.6.0-cuda10.1-cudnn7-runtime
# FROM pytorch/pytorch:1.7.0-cuda11.0-cudnn8-runtime AS base_image
# note: the torch image comes with conda pre-installed but we don't make any use of it
RUN apt-get update -qq && apt-get install -y -qq \
#wget \
nano \
curl \
#screen \
#vim \
git \
tmux \
#cmake \
tree\
rsync
#ssh\
SHELL ["/bin/bash", "-c"]
ENV DATAPATH=/data
ENV RAW_DATAPATH=/data/raw
ENV PROC_DATAPATH=/data/proc
ENV RESULTSPATH=/results
ENV CODEPATH=/code
RUN mkdir -p $CODEPATH
RUN mkdir -p $PROC_DATAPATH
RUN mkdir -p $RAW_DATAPATH
RUN mkdir -p $RESULTSPATH
WORKDIR $CODEPATH
# Setting up JupyterLab
# we use caching: add requirements > install requirements
ADD jupyterlab_requirements.txt .
RUN pip install -r jupyterlab_requirements.txt
COPY jupyter_notebook_config.py /root/.jupyter/
COPY .bashrc /root/
# install package in editable mode
#ADD . .
#RUN pip install -e .