2022-03-18 16:44:58 +00:00
|
|
|
FROM python:slim
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
apt update && \
|
|
|
|
apt -y upgrade && \
|
|
|
|
apt install -y \
|
|
|
|
gcc \
|
|
|
|
libsasl2-dev \
|
|
|
|
libldap2-dev \
|
2024-10-31 17:58:27 +00:00
|
|
|
libssl-dev \
|
|
|
|
curl
|
|
|
|
|
|
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
|
|
|
|
|
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
|
|
|
2024-10-28 08:01:52 +00:00
|
|
|
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
|
2022-03-18 16:44:58 +00:00
|
|
|
WORKDIR /opt/canaille
|
2024-11-13 09:18:04 +00:00
|
|
|
RUN uv sync --group demo --extra front --extra oidc --extra ldap --extra sqlite
|
2022-05-13 14:47:48 +00:00
|
|
|
|
2024-10-28 08:01:52 +00:00
|
|
|
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"]
|