mirror of
https://github.com/healthchecks/healthchecks.git
synced 2025-04-07 22:25:35 +00:00
Update Dockerfile to install recent rustc (needed to build cryptography)
* Healthchecks depends on python library "fido2" * fido2 depends on python library "cryptography" * building cryptography requires recent (1.65+) rustc * cryptography has prebuilt binary wheels for most architectures but not for arm/v7 * Dockerfile uses bookworm as base, which ships rustc 1.63 * So we now install rust using rustup This is all terrible.
This commit is contained in:
parent
ca75c7e984
commit
79b9aae660
1 changed files with 3 additions and 1 deletions
|
@ -3,8 +3,10 @@ FROM python:3.12-slim-bookworm as builder
|
|||
COPY requirements.txt /tmp
|
||||
RUN \
|
||||
apt-get update && \
|
||||
apt-get install -y build-essential git libpq-dev libmariadb-dev libffi-dev libssl-dev libcurl4-openssl-dev libpython3-dev rustc pkg-config
|
||||
apt-get install -y build-essential curl git libpq-dev libmariadb-dev libffi-dev libssl-dev libcurl4-openssl-dev libpython3-dev pkg-config
|
||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
|
||||
ENV CARGO_NET_GIT_FETCH_WITH_CLI true
|
||||
ENV PATH=$PATH:/root/.cargo/bin
|
||||
RUN \
|
||||
pip install --upgrade pip && \
|
||||
pip wheel --wheel-dir /wheels apprise uwsgi mysqlclient minio -r /tmp/requirements.txt
|
||||
|
|
Loading…
Add table
Reference in a new issue