8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 22:22:26 +00:00
re2o/Dockerfile

24 lines
712 B
Text
Raw Normal View History

2024-03-08 09:05:24 +00:00
FROM python:3.9-bullseye AS base
ENV PYTHONUNBUFFERED=1
2024-03-03 10:44:43 +00:00
RUN pip install poetry
2024-03-08 07:15:49 +00:00
WORKDIR /code
2024-03-08 09:05:24 +00:00
RUN apt-get update && apt-get install -y --no-install-recommends gettext-base libpq-dev graphviz
2024-03-08 07:15:49 +00:00
COPY pyproject.toml poetry.lock /code/
COPY . /code/
2024-03-08 09:05:24 +00:00
CMD ./docker/docker-entrypoint.sh
FROM base AS ldap
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y --no-install-recommends libldap-dev slapd libsasl2-dev
FROM base AS mysql
RUN poetry install --with dev --extras "mysql"
FROM base AS postgres
RUN poetry install --with dev --extras "postgresql"
FROM ldap AS mysql-ldap
RUN poetry install --with dev --extras "mysql ldap"
FROM ldap AS postgres-ldap
RUN poetry install --with dev --extras "postgresql ldap"