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

This commit is contained in:
2026-08-06 18:28:10 +03:00
commit 3ae867184f
3 changed files with 643 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM python:3.12-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /app/config /app/.graph_images
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8081"]