This commit is contained in:
caramelteawithmint
2026-11-06 03:13:43 +03:00
parent 65003b6119
commit fc62d81ec4
12 changed files with 503 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM python:3.11-slim
WORKDIR /app
# Устанавливаем системные зависимости для сборки psycopg/asyncpg
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc libpq-dev \
&& rm -rf /var/lib/apt/lists/*
# Копируем зависимости и устанавливаем их
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Копируем весь остальной код (папку app и т.д.)
COPY . .
# Запускаем FastAPI через uvicorn
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]