forked from idealo/image-quality-assessment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.cpu
30 lines (24 loc) · 744 Bytes
/
Dockerfile.cpu
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
29
30
FROM tensorflow/tensorflow:2.0.0-py3
ENV HTTP_PROXY "http://webproxy:3128"
ENV http_proxy "http://webproxy:3128"
ENV HTTPS_PROXY "http://webproxy:3128"
ENV https_proxy "http://webproxy:3128"
RUN export http_proxy=http://webproxy:3128 && export https_proxy=http://webproxy:3128
COPY apt-get-proxy /etc/apt/apt.conf.d/
# Install system packages
RUN apt-get update && apt-get install -y --no-install-recommends \
bzip2 \
g++ \
git \
graphviz \
libgl1-mesa-glx \
libhdf5-dev \
openmpi-bin \
wget && \
rm -rf /var/lib/apt/lists/*
COPY src /src
COPY models /models
RUN pip install --upgrade pip
RUN pip install Flask
RUN pip install -r src/requirements.txt
ENV PYTHONPATH='/src/:$PYTHONPATH'