8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-06 01:46:27 +00:00
re2o/Dockerfile

25 lines
764 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/
2024-03-03 10:44:43 +00:00
RUN poetry install --with dev --extras "postgresql"
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"