diff --git a/Dockerfile b/Dockerfile index 3560c65..2437e2b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,8 @@ FROM python:3.11-slim ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 WORKDIR /app -RUN pip install --no-cache-dir fastapi uvicorn[standard] docker +COPY requirements.txt /app/requirements.txt +RUN pip install --no-cache-dir -r requirements.txt COPY app.py /app/app.py COPY templates /app/templates diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..86a7dbf --- /dev/null +++ b/requirements.txt @@ -0,0 +1,23 @@ +# LogBoard+ - Зависимости Python +# Автор: Сергей Антропов +# Сайт: https://devops.org.ru + +# FastAPI и веб-сервер +fastapi==0.104.1 +uvicorn[standard]==0.24.0 + +# Docker SDK для Python +docker==6.1.3 + +# Дополнительные зависимости для FastAPI +pydantic==2.5.0 +starlette==0.27.0 + +# Зависимости для uvicorn[standard] +uvloop==0.19.0 +watchfiles==0.21.0 +websockets==12.0 + +# Зависимости для Docker SDK +requests==2.31.0 +urllib3==2.1.0