forked from upciti/wheel2deb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (33 loc) · 960 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
30
31
32
33
34
35
36
37
38
39
40
FROM python:3.8-buster AS builder
RUN apt-get -yq update \
&& apt-get -yq --no-install-suggests --no-install-recommends install \
git \
&& apt-get clean
COPY . /src
RUN cd src && python3 setup.py bdist_wheel
FROM debian:buster AS base
RUN dpkg --add-architecture armhf \
&& apt-get -yq update \
&& apt-get -yq --no-install-suggests --no-install-recommends install \
libc6:armhf \
binutils-arm-linux-gnueabihf \
build-essential \
debhelper \
devscripts \
fakeroot \
lintian \
apt-file \
python3-distutils \
python3-apt \
curl \
&& apt-get clean
RUN curl -nSL https://bootstrap.pypa.io/get-pip.py > /tmp/get-pip.py \
&& chmod +x /tmp/get-pip.py \
&& python3 /tmp/get-pip.py \
&& rm /tmp/get-pip.py
RUN pip3 install --no-cache-dir pytest pytest-cov
COPY --from=builder /src/dist/*.whl /
RUN pip3 install --no-cache-dir /*.whl && rm /*.whl
VOLUME /data
WORKDIR /data
ENTRYPOINT ["wheel2deb"]