diff --git a/Dockerfile b/Dockerfile index 6f220136..f993e655 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,11 @@ WORKDIR /opt/recipes COPY requirements.txt ./ +RUN \ + if [ `dpkg --print-architecture` = "armhf" ]; then \ + printf "[global]\nextra-index-url=https://www.piwheels.org/simple\n" > /etc/pip.conf ; \ + fi + RUN apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev zlib-dev jpeg-dev libwebp-dev libressl-dev libffi-dev cargo openssl-dev openldap-dev python3-dev && \ echo -n "INPUT ( libldap.so )" > /usr/lib/libldap_r.so && \ python -m venv venv && \