Загрузить файлы в «/»

This commit is contained in:
2026-04-23 09:18:29 +00:00
parent 3d4e5fc690
commit 92be1aa08e
3 changed files with 43 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py _config.py YTProcessing.py ./
COPY templates/ ./templates/
EXPOSE 5000
CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000", "--workers", "2"]