content: # Base image
  FROM python:3.10-slim
  
  RUN apt update && \
      apt install --no-install-recommends -y build-essential gcc && \
      apt clean && rm -rf /var/lib/apt/lists/*
  
  COPY requirements.txt requirements.txt
  COPY pyproject.toml pyproject.toml
  COPY mlops_mnist/ mlops_mnist/
  COPY data/ data/
  
  WORKDIR /
  RUN pip install -r requirements.txt --no-cache-dir
  RUN pip install . --no-deps --no-cache-dir
  
  ENTRYPOINT ["python", "-u", "mlops_mnist/predict_model.py"]