forked from BlueFinBima/mariner
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
29 lines (23 loc) · 899 Bytes
/
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
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 | 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/
RUN /root/.local/bin/poetry build
WORKDIR /build/dist
RUN dpkg-buildpackage -us -uc