initial commit
This commit is contained in:
parent
2d7b278666
commit
54184439a4
95 changed files with 1289 additions and 22591 deletions
22
Dockerfile
Normal file
22
Dockerfile
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
FROM python:3.12-slim
|
||||
|
||||
# Install ffmpeg for merging video+audio streams
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install Python dependencies first (better layer caching)
|
||||
COPY pyproject.toml .
|
||||
COPY yt_dlp ./yt_dlp
|
||||
RUN pip install --no-cache-dir -e ".[default]" && \
|
||||
pip install --no-cache-dir fastapi "uvicorn[standard]" httpx
|
||||
|
||||
# Copy web app
|
||||
COPY web/backend ./web/backend
|
||||
COPY web/frontend ./web/frontend
|
||||
|
||||
RUN mkdir -p /app/web/backend/downloads
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["python", "-m", "uvicorn", "web.backend.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue