CoolFace
Apppublic

cfe0413/MakeYourNoise

sourceHugging Faceapache-2.0updated 3mo agoView on Hugging Face
0likes
Dockerfile25 linesDownload Raw Back to root
1FROM python:3.10-slim2 3# Install system dependencies (specifically ffmpeg for pydub MP3 encoding)4RUN apt-get update && apt-get install -y \5    ffmpeg \6    && rm -rf /var/lib/apt/lists/*7 8# Set working directory9WORKDIR /app10 11# Copy requirements and install12COPY requirements.txt .13RUN pip install --no-cache-dir -r requirements.txt14 15# Copy application files16COPY app.py .17COPY templates/ templates/18COPY static/ static/19 20# Expose port (7860 is Hugging Face default, Render/Railway injects PORT env)21EXPOSE 786022 23# Run using gunicorn with fallback port24CMD gunicorn --bind 0.0.0.0:${PORT:-7860} app:app25