chore: install cargo in the demo Docker image

this was missing to allow the zxcvbn dependency to compile
This commit is contained in:
Éloi Rivard 2024-10-31 18:58:27 +01:00
parent ce1ea3f6c3
commit 3fe501e32e
No known key found for this signature in database
GPG key ID: 7EDA204EA57DD184

View file

@ -7,7 +7,16 @@ RUN \
gcc \
libsasl2-dev \
libldap2-dev \
libssl-dev
libssl-dev \
curl
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Needed until zxcvbn supports Python 3.13
# https://github.com/fief-dev/zxcvbn-rs-py/issues/2
ENV PYO3_USE_ABI3_FORWARD_COMPATIBILITY="1"
COPY uv.lock pyproject.toml hatch_build.py LICENSE.rst README.md demo/demoapp.py /opt/canaille/
COPY canaille /opt/canaille/canaille