s / Dockerfile
redfernstech's picture
Upload 6 files
e8a4c92 verified
raw
history blame contribute delete
595 Bytes
# 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"]