audiogram-studio / Dockerfile
duqing2026's picture
Update: Automate asset generation and exclude binaries from git
23b4a3c
raw
history blame contribute delete
576 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies including FFmpeg and fonts
RUN apt-get update && apt-get install -y \
ffmpeg \
fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Generate demo assets
RUN python3 generate_assets.py
# Create directories for uploads/outputs
RUN mkdir -p uploads outputs && chmod 777 uploads outputs
# Create a non-root user
RUN useradd -m -u 1000 user
USER user
EXPOSE 7860
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]