From ced9a0e06a4d031e032bb1073651520405f31c00 Mon Sep 17 00:00:00 2001 From: gsd Date: Tue, 10 Feb 2026 17:19:56 +0300 Subject: [PATCH] python reqs --- Dockerfile | 2 ++ docker-compose.example.yaml | 4 +--- requirements.txt | 9 +++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index d688ae8..6557ec1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM python:3.10 WORKDIR /app +COPY requirements.txt /app +RUN python3 -m pip install -r requirements.txt COPY *.py /app COPY botExtensions/ /app/botExtensions COPY webExtensions/ /app/webExtensions diff --git a/docker-compose.example.yaml b/docker-compose.example.yaml index 094fd0f..8de3c8c 100644 --- a/docker-compose.example.yaml +++ b/docker-compose.example.yaml @@ -5,7 +5,7 @@ services: ports: - 27017:27017 volumes: - - ./testenv/mongodb:/data/db + - $PWD/mongodb:/data/db deploy: resources: limits: @@ -36,8 +36,6 @@ services: - 8680:8680 depends_on: - mongodb - volumes: - - /run/dbus:/run/dbus:ro deploy: resources: limits: diff --git a/requirements.txt b/requirements.txt index fd5e7c9..468db8f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ -pyserial-asyncio -uvicorn[standard] -fastapi -pymongo \ No newline at end of file +pyserial-asyncio==0.6 +uvicorn[standard]==0.34.3 +fastapi==0.115.12 +pymongo==4.16.0 +pydantic==2.11.7 \ No newline at end of file