-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 752 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 752 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
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 libxslt-dev libxml2-dev
RUN apt-get -y install build-essential libssl-dev libffi-dev python3-dev
RUN apt-get -y install zlib1g-dev
RUN bash -c "curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -"
ENV PATH=$PATH:/root/.poetry/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 python3 /root/.poetry/bin/poetry build
WORKDIR /build/dist
RUN dpkg-buildpackage -us -uc