<filename>Dockerfile<gh_stars>10-100
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"]
