raga_recognition / Dockerfile
sujoy0011's picture
Update Dockerfile
4d9e8a2 verified
raw
history blame contribute delete
431 Bytes
# Use the official Python base image
FROM python:3.9
# Set the working directory
WORKDIR /app
# Copy the requirements file and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the model and code files
COPY . .
# Expose the port FastAPI will run on
EXPOSE 7860
# Command to run the FastAPI app using Uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]