You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-07-15 01:24:34 +02:00
Update build reqs and fix armv7 build
This commit is contained in:
@ -32,7 +32,7 @@ RUN set -euxo pipefail \
|
||||
; apk add --no-cache py3-pip \
|
||||
; python3 -m venv ${VIRTUAL_ENV} \
|
||||
; ${VIRTUAL_ENV}/bin/pip install --no-cache-dir -r requirements-build.txt \
|
||||
; apk del py3-pip
|
||||
; apk del -r py3-pip
|
||||
|
||||
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
|
||||
|
||||
@ -40,13 +40,12 @@ COPY requirements-${MAILU_ENV}.txt ./
|
||||
COPY libs/ libs/
|
||||
|
||||
RUN set -euxo pipefail \
|
||||
; machine="$(uname -m)"; deps="" \
|
||||
; [[ "${machine}" == arm* || "${machine}" == aarch64 ]] && deps="${deps} build-base gcc libffi-dev python3-dev" \
|
||||
; [[ "${machine}" == armv7* ]] && deps="${deps} cargo libressl-dev mariadb-connector-c-dev postgresql-dev" \
|
||||
; [[ "${deps}" ]] && apk add --virtual .build-deps ${deps} \
|
||||
; pip install -r requirements-${MAILU_ENV}.txt \
|
||||
|| ( \
|
||||
apk add --no-cache --virtual .build-deps \
|
||||
build-base gcc libffi-dev python3-dev \
|
||||
; pip install -r requirements-${MAILU_ENV}.txt \
|
||||
; apk del .build-deps \
|
||||
) \
|
||||
; apk -e info -q .build-deps && apk del -r .build-deps \
|
||||
; rm -rf /root/.cache /tmp/*.pem
|
||||
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
pip==22.2.2
|
||||
setuptools==65.4.1
|
||||
pip==22.3
|
||||
setuptools==65.5.0
|
||||
wheel==0.37.1
|
||||
|
Reference in New Issue
Block a user