067cc51cf2
Build and Push Docker Image / build-and-push (push) Failing after 10m6s
- Update Zeroconf to unicast mode to resolve port 5353 conflict with avahi-daemon - Make API and Streamlit ports configurable via environment variables (defaults: 8055, 8505) - Add Gitea Actions workflow for automated Docker builds and registry pushes - Refactor Chromecast discovery to use modern CastBrowser API
36 lines
645 B
Docker
36 lines
645 B
Docker
FROM python:3.11-slim
|
|
|
|
# Install system dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
ffmpeg \
|
|
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 code
|
|
COPY app/ ./app/
|
|
COPY start.sh .
|
|
RUN chmod +x start.sh
|
|
|
|
# Create necessary directories
|
|
RUN mkdir -p config/thumbnails videos
|
|
|
|
# Default ports
|
|
ENV API_PORT=8055
|
|
ENV STREAMLIT_PORT=8505
|
|
|
|
# Expose ports
|
|
EXPOSE 8055 8505
|
|
|
|
# Set Environment Variables
|
|
ENV CONFIG_DIR=/app/config
|
|
ENV VIDEOS_DIR=/app/videos
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
CMD ["./start.sh"]
|