Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files1234567891011121314# DockerfileFROM python:3.10-slimWORKDIR /app# Install necessary librariesRUN apt update && apt install -y ffmpeg libsndfile1COPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txtCOPY app.py ./CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]123456789101112131415161718# Use official Python base imageFROM python:3.11-slim# Set working directoryWORKDIR /app# Copy requirements.txt and install Python packagesCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# Copy the rest of the appCOPY app.py ./# Expose port 5000 (Flask default)EXPOSE 5000# Run the Flask appCMD ["python", "app.py"]
Dockerfile+10-6