This commit is contained in:
caramelteawithmint
2026-11-27 07:52:15 +03:00
parent 6b60dd5d74
commit d8b193f62b
20 changed files with 966 additions and 150 deletions
+24
View File
@@ -0,0 +1,24 @@
# Фиксируем версию, как требует infrastructure.json
FROM python:3.11-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PYTHONPATH=/app
WORKDIR /app
# Системные зависимости (нужны для Pillow, psycopg и т.д.)
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
build-essential \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8080
CMD ["uvicorn", "src.app.main:app", "--host", "0.0.0.0", "--port", "8080"]