-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
29 lines (19 loc) · 843 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
# FROM defines the base image
FROM tensorflow/tensorflow:1.13.0rc2-gpu-py3
MAINTAINER Patrick Gray <[email protected]>
# Disable interactive interface
ARG DEBIAN_FRONTEND=noninteractive
# RUN executes a shell command
# You can chain multiple commands together with &&
# A \ is used to split long lines to help with readability
# Install keras dependencies and geospatial libraries not included in
# https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/docker/Dockerfile.gpu
RUN pip install --upgrade pip
COPY requirements.txt ./
RUN pip install -r requirements.txt
# Enable the widgetsnbextension for notebook
RUN jupyter nbextension enable --py --sys-prefix widgetsnbextension
# Install keras
RUN pip --no-cache-dir install --no-deps keras
# Set keras backend to tensorflow by default
ENV KERAS_BACKEND tensorflow