This commit is contained in:
Marek
2026-04-04 22:23:27 +02:00
parent 05fbcd5a04
commit 90b7ac42a9
4 changed files with 31 additions and 0 deletions

12
backend/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM python:3.12-slim
RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]

View File

@@ -0,0 +1,8 @@
services:
backend:
build: .
ports:
- "8000:8000"
volumes:
- .:/app
- ./videos:/videos

8
backend/main.py Normal file
View File

@@ -0,0 +1,8 @@
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def root():
return {"status": "running"}

3
backend/requirements.txt Normal file
View File

@@ -0,0 +1,3 @@
fastapi
uvicorn
yt-dlp