IPL-predictor / Dockerfile
durgexh's picture
Upload 9 files
d8d4264 verified
Raw
History Blame Contribute Delete
595 Bytes
# Use an official Python runtime as a parent image
FROM python:3.10-slim
# Set the working directory directly in the Hugging Face container
WORKDIR /app
# Copy the requirements file first to build the environment
COPY requirements.txt .
# Install the Python hacker packages we used
RUN pip install --no-cache-dir -r requirements.txt
# Copy all the HTML, CSS, JS, and Python scripts into the container
COPY . .
# Expose the standard port used by Hugging Face Spaces
EXPOSE 7860
# Command to run the FastAPI app via Uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]