Spaces:
Sleeping
Sleeping
# Use an official Python runtime as a parent image | |
FROM python:3.9 | |
# Set the working directory in the container | |
WORKDIR /app | |
# Install system dependencies for audio processing | |
RUN apt-get update && apt-get install -y ffmpeg | |
# Copy the current directory contents into the container at /app | |
COPY . /app | |
# Create the uploads directory and set proper permissions | |
RUN mkdir -p /app/uploads && chmod -R 777 /app/uploads | |
# Install Python dependencies | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Expose the port that the Flask app runs on | |
EXPOSE 7860 | |
# Command to run the application | |
CMD ["python", "app.py"] | |