first commit

This commit is contained in:
pie
2026-05-03 16:48:18 +01:00
commit d0dba8183b
10 changed files with 610 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
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"]