canaille-globuzma/demo/Dockerfile-canaille
2024-10-31 09:49:53 +01:00

18 lines
600 B
Text

FROM python:slim
RUN \
apt update && \
apt -y upgrade && \
apt install -y \
gcc \
libsasl2-dev \
libldap2-dev \
libssl-dev
COPY uv.lock pyproject.toml hatch_build.py LICENSE.rst README.md demo/demoapp.py /opt/canaille/
COPY canaille /opt/canaille/canaille
RUN pip install uv
WORKDIR /opt/canaille
RUN uv sync --group demo --all-extras
ENTRYPOINT ["uv", "run", "flask", "run", "--host=0.0.0.0", "--extra-files", "/opt/canaille/conf/canaille-memory.toml", "--extra-files", "/opt/canaille/conf/canaille-ldap.toml", "--extra-files", "/opt/canaille/conf/canaille-sql.toml"]