FROM python:3.9-bullseye ENV PYTHONUNBUFFERED=1 RUN pip install poetry WORKDIR /code RUN apt-get update && apt-get install -y --no-install-recommends gettext-base libpq-dev COPY pyproject.toml poetry.lock /code/ RUN poetry install --with dev --extras "postgresql" COPY . /code/ CMD ./docker/docker-entrypoint.sh