0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-08 06:30:05 +00:00

Update Dockerfile to install rust via rustup

(The rust version in bullseye repositories is now
too old to build cryptography.)
This commit is contained in:
Pēteris Caune 2023-06-05 15:39:13 +03:00
parent 1f0ca10185
commit 292133526f
No known key found for this signature in database
GPG key ID: E28D7679E9A9EDE2

View file

@ -1,7 +1,9 @@
FROM python:3.11-slim-bullseye as builder
COPY requirements.txt /tmp
RUN apt update && apt install -y build-essential git libpq-dev libmariadb-dev libffi-dev libssl-dev rustc libcurl4-openssl-dev libpython3-dev
RUN apt update && apt 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 | sh -s -- -y
ENV PATH="${PATH}:/root/.cargo/bin"
ENV CARGO_NET_GIT_FETCH_WITH_CLI true
RUN \
pip install --upgrade pip && \