mirror of
https://github.com/myronblair/kino-app
synced 2026-07-27 21:18:43 -05:00
auto-commit for 28f1e986-c2af-4742-ad64-e0661980843c
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Kino backend — FastAPI + ffmpeg
|
||||
FROM python:3.11-slim
|
||||
|
||||
# ffmpeg for HLS transcoding; util-linux for `nice` (already in base but explicit)
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ffmpeg \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install Python deps first (layer cache)
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy app source
|
||||
COPY . .
|
||||
|
||||
# Create media dirs (will be overridden by volume mount at runtime)
|
||||
RUN mkdir -p /media/videos /media/posters /media/subtitles /media/hls
|
||||
|
||||
EXPOSE 8001
|
||||
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8001", "--proxy-headers"]
|
||||
Reference in New Issue
Block a user