-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathcpu.dockerfile
More file actions
36 lines (32 loc) · 820 Bytes
/
cpu.dockerfile
File metadata and controls
36 lines (32 loc) · 820 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
25
26
27
28
29
30
31
32
33
34
35
36
FROM tensorflow/tensorflow:2.4.2
# install debian packages
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qq \
&& apt-get install --no-install-recommends -y \
# install essentials
build-essential \
wget \
git \
cython \
ffmpeg \
libsm6 \
libxext6 \
# requirements for numpy
libopenblas-base \
python3-numpy \
python3-scipy \
# requirements for keras
python3-h5py \
python3-yaml \
python3-pydot \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /opt/lacmus
WORKDIR /opt/lacmus
COPY . .
RUN pip3 install --upgrade setuptools \
&& pip3 install opencv-python \
&& pip3 install git+https://github.com/lacmus-foundation/keras-resnet.git \
&& pip3 install . \
&& python3 setup.py build_ext --inplace
ENTRYPOINT ["bash"]