Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04
FROM tensorflow/tensorflow:1.15.2-gpu-py3

RUN apt-get update && apt-get install -y \
software-properties-common \
Expand All @@ -8,19 +8,8 @@ RUN apt-get update && apt-get install -y \
libfontconfig1 \
libxrender1

RUN add-apt-repository ppa:jonathonf/python-3.6 -y
RUN apt-get update && apt-get install -y \
python3.6 \
python3.6-dev \
python3.6-venv
RUN wget https://bootstrap.pypa.io/get-pip.py && python3.6 get-pip.py
RUN ln -s /usr/bin/python3.6 /usr/local/bin/python

RUN pip3.6 install \
tensorflow-gpu==1.12 \
numpy==1.15.4 \
opencv-python==3.4.5
RUN pip install opencv-python==3.4.5.20

RUN useradd -ms /bin/bash n2n
USER n2n
WORKDIR /home/n2n
WORKDIR /home/n2n