Spaces:
Runtime error
Runtime error
File size: 595 Bytes
e8a4c92 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# Use the official Python image as the base image
FROM python:3.9-slim
# Set the working directory
WORKDIR /app
# Copy the backend files into the container
COPY backend/ /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Expose the FastAPI server port
EXPOSE 8000
# Run the FastAPI app with uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|