Files
boys_streaming/Dockerfile
T
2026-05-03 16:48:18 +01:00

32 lines
619 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
# Expose ports (FastAPI: 8003, Streamlit: 8503)
EXPOSE 8003 8503
# Set Environment Variables
ENV CONFIG_DIR=/app/config
ENV VIDEOS_DIR=/app/videos
ENV PYTHONUNBUFFERED=1
CMD ["./start.sh"]