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 \
|
|
|
|
libssl-dev
|
|
|
|
|
2023-05-19 13:53:56 +00:00
|
|
|
COPY poetry.lock pyproject.toml demo/demoapp.py /opt/canaille/
|
2022-05-13 14:47:48 +00:00
|
|
|
RUN pip install poetry
|
2022-03-18 16:44:58 +00:00
|
|
|
WORKDIR /opt/canaille
|
2023-04-12 16:05:16 +00:00
|
|
|
RUN poetry install --with demo --without dev
|
2022-05-13 14:47:48 +00:00
|
|
|
|
2023-05-24 15:04:42 +00:00
|
|
|
ENTRYPOINT ["poetry", "run", "flask", "run", "--host=0.0.0.0", "--extra-files", "/opt/canaille/conf/canaille.toml"]
|