8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 07:23:46 +00:00
re2o/docker/Dockerfile-re2o

39 lines
1 KiB
Text
Raw Permalink 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-04-24 13:16:40 +00:00
RUN apt-get update && apt-get install -y --no-install-recommends gettext-base gettext libpq-dev graphviz fonts-font-awesome libjs-bootstrap libjs-jquery
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
2024-03-10 11:06:29 +00:00
RUN poetry install --extras "mysql"
2024-03-08 09:05:24 +00:00
FROM base AS postgres
2024-03-10 11:06:29 +00:00
RUN poetry install --extras "postgresql"
2024-03-08 09:05:24 +00:00
FROM ldap AS mysql-ldap
2024-03-10 11:06:29 +00:00
RUN poetry install --extras "mysql ldap"
2024-03-08 09:05:24 +00:00
FROM ldap AS postgres-ldap
2024-03-10 11:06:29 +00:00
RUN poetry install --extras "postgresql ldap"
FROM base AS mysql-dev
ENV RUN_TESTS=no
RUN poetry install --with dev --extras "mysql"
FROM base AS postgres-dev
ENV RUN_TESTS=no
RUN poetry install --with dev --extras "postgresql"
FROM ldap AS mysql-ldap-dev
ENV RUN_TESTS=no
RUN poetry install --with dev --extras "mysql ldap"
FROM ldap AS postgres-ldap-dev
ENV RUN_TESTS=no
2024-03-08 09:05:24 +00:00
RUN poetry install --with dev --extras "postgresql ldap"