content: # From https://github.com/django/djangoproject.com/blob/main/Dockerfile
  
  # pull official base image
  FROM python:3.12-slim-bookworm@sha256:abc
  
  # set work directory
  WORKDIR /usr/src/app
  
  # set environment varibles
  ENV PYTHONDONTWRITEBYTECODE 1
  ENV PYTHONUNBUFFERED 1
  
  # install deb packages
  RUN apt-get update \
      && apt-get install --assume-yes --no-install-recommends \
          gettext \
          git \
          libpq5 \
          make \
          rsync \
      && rm -rf /var/lib/apt/lists/*
  
  ARG REQ_FILE=requirements/prod.txt
  
  # install python dependencies
  COPY ./requirements ./requirements
  RUN apt-get update \
      && apt-get install --assume-yes --no-install-recommends \
          g++ \
          gcc \
          libc6-dev \
          libpq-dev \
          zlib1g-dev \
      && python3 -m pip install --no-cache-dir -r ${REQ_FILE} \
      && apt-get purge --assume-yes --auto-remove \
          g++ \
          gcc \
          libc6-dev \
          libpq-dev \
          zlib1g-dev \
      && rm -rf /var/lib/apt/lists/*
  
  # copy project
  COPY . .
  
  # ENTRYPOINT is specified only in the local docker-compose.yml to avoid
  # accidentally running it in deployed environments.
  