-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.backend.rpi
39 lines (35 loc) · 971 Bytes
/
Dockerfile.backend.rpi
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
FROM balenalib/raspberry-pi:bullseye
RUN apt-get update && \
apt-get install -y --fix-missing \
git \
python3 python3-pip \
# dependencies for opencv
libwebp6 \
libgfortran5 \
libatlas3-base \
libjpeg-dev \
libpng-dev \
libcairo2 \
libpixman-1-0 \
libfontconfig1 \
libpango-1.0-0 \
libharfbuzz0b \
libopenjp2-7 \
libtiff5 \
libwebp6 \
libavcodec58 \
libavformat58 \
libswscale5 \
# very important for svgpathtools to work correctly with scipy
libatomic1 \
libopenblas-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Write the pip.conf directly within the image
RUN echo "[global]" > /etc/pip.conf && \
echo "extra-index-url = https://www.piwheels.org/simple" >> /etc/pip.conf
WORKDIR /app
COPY backend/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --prefer-binary -r requirements.txt
COPY backend /app/
CMD ["python3", "main.py"]