mirror of https://gitlab.federez.net/re2o/re2o
3 changed files with 25 additions and 4 deletions
@ -1,9 +1,25 @@ |
|||||
FROM python:3.9-bullseye |
FROM python:3.9-bullseye AS base |
||||
ENV PYTHONUNBUFFERED=1 |
ENV PYTHONUNBUFFERED=1 |
||||
RUN pip install poetry |
RUN pip install poetry |
||||
WORKDIR /code |
WORKDIR /code |
||||
RUN apt-get update && apt-get install -y --no-install-recommends gettext-base libpq-dev |
RUN apt-get update && apt-get install -y --no-install-recommends gettext-base libpq-dev graphviz |
||||
COPY pyproject.toml poetry.lock /code/ |
COPY pyproject.toml poetry.lock /code/ |
||||
RUN poetry install --with dev --extras "postgresql" |
RUN poetry install --with dev --extras "postgresql" |
||||
COPY . /code/ |
COPY . /code/ |
||||
CMD ./docker/docker-entrypoint.sh |
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" |
||||
Loading…
Reference in new issue