forked from Desterly/mariner
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (23 loc) · 1.15 KB
/
Dockerfile
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
FROM balenalib/raspberry-pi-debian:latest
RUN apt-get update && apt-get -y upgrade && apt-get update
RUN apt-get -y install sudo dpkg-dev debhelper dh-virtualenv \
python3 python3-venv
RUN apt-get -y install libwebp-dev libjpeg62-turbo liblcms2-2 libopenjp2-7 libtiff5 libxcb1 libfreetype6 libpcap-dev libcap-dev python3-libcamera libxslt-dev libxml2-dev build-essential libssl-dev libffi-dev python3-dev zlib1g-dev liblapack3 libatlas-base-dev
# RUN bash -c "curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_UNINSTALL=1 python3 -"
RUN bash -c "curl -sSL https://install.python-poetry.org | python3 -"
ENV PATH=$PATH:/root/.local/bin \
DEB_BUILD_ARCH=armhf \
DEB_BUILD_ARCH_BITS=32 \
PIP_DEFAULT_TIMEOUT=600 \
PIP_TIMEOUT=600 \
PIP_RETRIES=100
RUN mkdir /build
COPY . /build/
WORKDIR /build
# RUN dpkg -l | grep -i virtualenv
# RUN ls -alR /root/.local/bin/
# https://python-poetry.org/docs/configuration/#virtualenvsoptionssystem-site-packages
RUN /root/.local/bin/poetry config virtualenvs.options.system-site-packages true
RUN /root/.local/bin/poetry build
WORKDIR /build/dist
RUN dpkg-buildpackage -us -uc