This commit is contained in:
pampixz
2026-12-03 19:25:38 +03:00
parent 20afc2c790
commit 38d908afc9
47 changed files with 2065 additions and 24 deletions
+11
View File
@@ -0,0 +1,11 @@
FROM python:3.12.9-slim
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY main.py migrate.py queueing.py worker.py telemetry.py ./
COPY migrations/ ./migrations/
COPY scripts/ ./scripts/
RUN useradd -u 10001 -m app
USER 10001
EXPOSE 8080
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080", "--timeout-graceful-shutdown", "8"]