Skip to content

Commit ab25435

Browse files
committed
Python tensorflow 1.15.2 on Python 3.6 & CUDA 10.0
1 parent 19eb85a commit ab25435

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed
Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1-
# Lablup/Python-TensorFlow 1.15 Python 3.6, CUDA10.0
21

32
FROM lablup/common-base:19.12-py36-cuda10
4-
MAINTAINER Mario Cho "[email protected]"
53

6-
ENV PYTHONUNBUFFERED=1 \
7-
LD_LIBRARY_PATH="/usr/local/cuda/lib64:/usr/local/nvidia/lib64" \
8-
PATH="/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
9-
LANG=C.UTF-8
4+
# Install TensorFlow, Keras, PyTorch and MXNet
5+
ENV TENSORFLOW_VERSION=1.15.2
6+
#ARG CUDA=10.1
7+
#ARG LIBNVINFER=6.0.1-1
8+
#ARG LIBNVINFER_MAJOR_VERSION=6
9+
#ENV CUDNN_VERSION=7.6.4.38-1+cuda10.1
10+
#ENV NCCL_VERSION=2.4.8-1+cuda10.1
11+
ENV DEBIAN_FRONTEND=noninteractive
12+
ENV mecab_dicdir /usr/local/lib/mecab/dic/mecab-ko-dic
13+
14+
# Set default shell to /bin/bash
15+
SHELL ["/bin/bash", "-cu"]
16+
17+
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 2
1018

1119
# Install ipython kernelspec
12-
RUN python3 -m ipykernel install --display-name "TensorFlow 1.15 on Python 3.6 (CUDA 10.0)" && \
20+
Run python3 -m ipykernel install --display-name "TensorFlow 1.15 on Python 3.6 (CUDA 10.0)" && \
1321
cat /usr/local/share/jupyter/kernels/python3/kernel.json
1422

1523
# Backend.AI specifics
@@ -23,7 +31,7 @@ LABEL ai.backend.kernelspec="1" \
2331
ai.backend.resource.min.cuda.shares=0.1 \
2432
ai.backend.runtime-type="python" \
2533
ai.backend.runtime-path="/usr/bin/python3" \
26-
ai.backend.service-ports="ipython:pty:3000,jupyter:http:8070,jupyterlab:http:8090"
34+
ai.backend.service-ports="ipython:pty:3000,tensorboard:http:6006,jupyter:http:8080,jupyterlab:http:8090"
2735

2836
WORKDIR /home/work
29-
# vim: ft=dockerfile
37+
# vim: ft=dockerfile

0 commit comments

Comments
 (0)