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