-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.armv7l
49 lines (41 loc) · 1.77 KB
/
Dockerfile.armv7l
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
37
38
39
40
41
42
43
44
45
46
47
48
FROM arm32v7/ubuntu:20.04 as base
ENV DEBIAN_FRONTEND=noninteractive
# See http://bugs.python.org/issue19846
ENV LANG C.UTF-8
# https://github.com/tensorflow/tensorflow/tree/master/tensorflow/tools/dockerfiles/dockerfiles
ARG DEBIAN_FRONTEND=noninteractive
# Install apt dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
python3-pip \
python3-dev \
build-essential \
protobuf-compiler \
wget \
curl \
git \
gpg-agent \
gnupg \
libgl1 \
libglib2.0-0 \
unzip \
libstdc++6 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
ln -s $(which python3) /usr/local/bin/python
# Update pip/setuptools
RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
setuptools
# Install tensorflow python dependencies for which there are good packages.
RUN apt-get update && apt-get install -y --no-install-recommends \
python3-h5py && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# No good libclang wheel is available for armv7l which is required for tensorflow
RUN python3 -m pip install --no-cache-dir https://github.com/snowzach/tensorflow-multiarch/releases/download/v2.7.0/libclang-12.0.0-py2.py3-none-linux_armv7l.whl
# Install dependancies for Tensorflow
RUN python3 -m pip install --no-cache-dir https://github.com/snowzach/tensorflow-multiarch/releases/download/v2.7.0/tensorflow_io_gcs_filesystem-0.23.1-cp38-cp38-linux_armv7l.whl
RUN python3 -m pip install --no-cache-dir https://github.com/snowzach/tensorflow-multiarch/releases/download/v2.7.0/tensorflow_io-0.23.1-cp38-cp38-linux_armv7l.whl
# Install Tensorflow
RUN python3 -m pip install --no-cache-dir https://github.com/snowzach/tensorflow-multiarch/releases/download/v2.7.0/tensorflow-2.7.0-cp38-none-linux_armv7l.whl