canaille-globuzma/demo/Dockerfile-canaille
loanR 3292ca8427 Use iso environment in local and container
Poetry installed environment have same groups for run.sh and Dockerfile-canaille
2023-04-12 18:05:16 +02:00

17 lines
354 B
Text

FROM python:slim
RUN \
apt update && \
apt -y upgrade && \
apt install -y \
gcc \
libsasl2-dev \
libldap2-dev \
libssl-dev
COPY poetry.lock pyproject.toml /opt/canaille/
RUN pip install poetry
WORKDIR /opt/canaille
RUN poetry install --with demo --without dev
ENTRYPOINT ["poetry", "run", "flask", "run", "--host=0.0.0.0"]