lab6_files

This commit is contained in:
caramelteawithmint
2026-12-04 19:16:26 +03:00
parent 20afc2c790
commit 4f21a985f7
38 changed files with 2115 additions and 0 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"]