Лабораторная 2:Оценка 4
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-10-19 23:09:12 +03:00
parent 65003b6119
commit 3af3a132ca
26 changed files with 1283 additions and 34 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM python:3.11.10-slim-bookworm
WORKDIR /app
# Устанавливаем зависимости
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Копируем код приложения
COPY src/ ./src/
COPY alembic/ ./alembic/
COPY alembic.ini .
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
# Открываем порт
EXPOSE 8080
ENTRYPOINT ["./entrypoint.sh"]
# Команда запуска
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8080"]