ML/modules/ml-pipeline/src/Prediction.Dockerfile
2025-11-05 10:43:41 +00:00

21 lines
No EOL
631 B
Docker

# Dockerfile that can be used to test loading a model to generate a prediction (part of CI/CD flow)
FROM python:3.12.12-slim
RUN apt-get update && apt-get install -y libgomp1 gcc python3-dev
COPY pipeline/requirements/predictions/requirements.txt requirements.txt
RUN pip install --upgrade pip
RUN pip install uv
RUN uv pip install -r requirements.txt --system
# RUN pip install -r requirements.txt
# Assuming in the CI/CD step, there will be a dvc pull step to get data and model, so will just need to run a single script
COPY pipeline/ /home/pipeline/
WORKDIR /home/pipeline/
CMD [ "python", "3_generate_predictions.py"]