перенос файлов рабочей версии lab2

This commit is contained in:
2026-11-13 19:35:08 +03:00
parent 0ab3a341aa
commit f880e234db
10 changed files with 885 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM python:3.11-slim
# Устанавливаем curl для healthcheck
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Копируем зависимости
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Копируем исходный код
COPY src/ ./src/
ENV HOST=0.0.0.0
ENV PORT=8080
EXPOSE 8080
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8080"]