Chittrarasu/Cricket-match-prediction-FastAPI
0
1# Use an official Python runtime as a parent image2FROM python:3.9-slim3 4# Set the working directory in the container5WORKDIR /app6 7# Copy the requirements file first (to leverage Docker caching)8COPY requirements.txt .9 10# Install dependencies11RUN pip install --no-cache-dir -r requirements.txt12 13# Copy the rest of the application code14COPY . .15 16# Expose the port FastAPI runs on17EXPOSE 786018 19# Command to run FastAPI using Uvicorn20CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]21 