content: FROM python:3.11-slim
  
  # install python
  RUN apt update && \
      apt install --no-install-recommends -y build-essential gcc && \
      apt clean && rm -rf /var/lib/apt/lists/*
  
  COPY configs/ configs/
  COPY src/ src/
  # COPY data/ data/ #excluded because we want to pull data from gcloud
  # COPY reports/ reports/
  # COPY models/ models/ #this does not exist as it is gitignored, ie. not included in tar. could alternatively use RUN MKDIR 
  RUN mkdir -p models/
  RUN mkdir -p reports/
  COPY requirements.txt requirements.txt
  COPY requirements_dev.txt requirements_dev.txt
  COPY README.md README.md
  COPY pyproject.toml pyproject.toml
  
  # WORKDIR /
  
  RUN pip install torch~=2.5.1 -i https://download.pytorch.org/whl/cpu
  RUN pip install -r requirements.txt --no-cache-dir
  RUN pip install google-cloud-storage google-cloud-aiplatform
  RUN pip install . --no-deps --no-cache-dir --verbose
  
  ENTRYPOINT ["python", "-u", "src/cleaninbox/train.py"]
  