Files
dropshell-templates/squashkiwi-streaming/config/overlay/Dockerfile
Your Name 11ddc264eb
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 59s
docs: Add 42 files
2025-09-01 14:04:58 +12:00

32 lines
730 B
Docker

FROM python:3.11-slim
# Install FFmpeg and fonts
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ffmpeg \
fonts-dejavu-core \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY overlay_service.py .
# Create recordings directory
RUN mkdir -p /recordings
# Run as non-root user
RUN useradd -m -s /bin/bash overlay && \
chown -R overlay:overlay /app /recordings
USER overlay
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD python -c "import sys; sys.exit(0)"
CMD ["python", "-u", "overlay_service.py"]