-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (20 loc) · 770 Bytes
/
Dockerfile
File metadata and controls
24 lines (20 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.7-stretch
RUN apt-get update && \
apt-get install -y git
# Get around directory structure quirk of exnteded image
RUN mkdir -p /var/www
# install keras
RUN pip install keras \
&& mkdir -p /var/www/packages \
&& cd /var/www/packages \
&& git clone https://github.com/keras-team/keras.git \
&& pip install --upgrade tensorflow \
&& pip install --upgrade google-api-python-client \
&& pip install --upgrade scikit-learn \
&& pip install --upgrade pandas \
&& pip install --upgrade pillow
RUN cd /var/www/packages/keras \
&& python setup.py install \
&& cd /var/www/ \
&& python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"
WORKDIR /var/www