Spaces:
Paused
Paused
Create Dockerfile
Browse files1234567891011121314151617181920212223242526272829# Use Python base imageFROM python:3.10-slim
# Set working directoryWORKDIR /app
# Install OS-level dependenciesRUN apt-get update && apt-get install -y \ git \ ffmpeg \ libsndfile1 \ libportaudio2 \ && rm -rf /var/lib/apt/lists/*
# Copy code into containerCOPY . .
# Install Python dependenciesRUN pip install --no-cache-dir -r requirements.txt
# Prevent Streamlit from auto-runningENV STREAMLIT_SERVER_HEADLESS=trueENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
# Expose the port for Uvicorn + FastAPIEXPOSE 7860
# Launch FastAPI (which internally loads Streamlit UI if integrated manually)CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.headless=true"]DockerfileAdded+29