File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM nvcr.io/nvidia/pytorch:19.09-py3
2
+ # NVIDIA PyTorch with Python 3.6 (CONDA)
3
+
4
+ ENV PYTHONUNBUFFERED=1 \
5
+ PATH=/opt/conda/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH \
6
+ LANG=C.UTF-8
7
+
8
+ # ipython/jupyter is already installed in the Anaconda Python installed at /opt/conda.
9
+ RUN /opt/conda/bin/python3 -m pip install jupyterlab
10
+
11
+ # Install ipython kernelspec
12
+ RUN /opt/conda/bin/python3 -m ipykernel install \
13
+ --prefix=/opt/conda/ \
14
+ --display-name "Python 3.6 CONDA (NGC/PyTorch 19.09) on Backend.AI" && \
15
+ cat /opt/conda/share/jupyter/kernels/python3/kernel.json
16
+
17
+ # Backend.AI specifics
18
+ COPY policy.yml /etc/backend.ai/jail/policy.yml
19
+ LABEL ai.backend.kernelspec="1" \
20
+ ai.backend.envs.corecount="OPENBLAS_NUM_THREADS,OMP_NUM_THREADS,NPROC" \
21
+ ai.backend.features="batch uid-match" \
22
+ ai.backend.accelerators="cuda" \
23
+ ai.backend.resource.min.cpu="1" \
24
+ ai.backend.resource.min.mem="1g" \
25
+ ai.backend.resource.min.cuda.device=1 \
26
+ ai.backend.resource.min.cuda.shares=0.1 \
27
+ ai.backend.base-distro="ubuntu16.04" \
28
+ ai.backend.runtime-type="python" \
29
+ ai.backend.runtime-path="/opt/conda/bin/python3" \
30
+ ai.backend.service-ports="ipython:pty:3000, jupyter:http:8080,jupyterlab:http:8090"
31
+
32
+ # vim: ft=dockerfile
You can’t perform that action at this time.
0 commit comments