-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (24 loc) · 1013 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
26
27
28
29
30
31
32
33
34
35
FROM jupyter/tensorflow-notebook:41e066e5caa8
MAINTAINER Austin Keller <austin474@gmail.com>
USER root
# Install system packages here, if necessary
# RUN apt-get update -y && apt-get install -y your-desired-packages
RUN conda install --quiet --yes \
pytorch \
torchvision \
cudatoolkit=9.0 \
-c pytorch && \
conda clean -tipsy && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
USER $NB_USER
# create and change working directory
WORKDIR /home/jovyan
# Custom python packages from git repositories using git+ format, for example:
# -e git+https://github.com/your_username/your_package@your_tag#egg=your_package
# -e git+https://bitbucket.org/atkeller/proteomics_tools/get/v0.2.1.tar.gz#egg=proteomics-tools
# or for a local repository (for testing)
# -e git+file://./src/your_package#egg=your_package
# see https://pip.readthedocs.io/en/1.1/requirements.html#requirements-file-format
ADD requirements.txt /src/
RUN pip install -r /src/requirements.txt