FROM python:3.9-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app.py . COPY boston_housing_model.pkl . COPY preprocessor.pkl . # Expose the port Hugging Face provides EXPOSE ${PORT} # Use the PORT environment variable CMD ["python", "app.py"]