changed dockerfile and requirements.txt

This commit is contained in:
2026-05-11 11:38:40 +02:00
parent 5d3c22fd1c
commit c0bc9588f5
3 changed files with 14 additions and 3 deletions
+4 -2
View File
@@ -6,11 +6,13 @@ RUN apt-get update && apt-get install -y \
bash \ bash \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY . . RUN pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
RUN pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu Copy . .
RUN chmod +x start_server.sh RUN chmod +x start_server.sh
+3
View File
@@ -4,3 +4,6 @@ numpy==2.3.4
tqdm==4.67.3 tqdm==4.67.3
uvicorn==0.46.0 uvicorn==0.46.0
python-multipart==0.0.27 python-multipart==0.0.27
opencv-python==4.13.0.92
pillow==12.2.0
pycocotools==2.0.11
+6
View File
@@ -14,6 +14,8 @@ services:
- cnn_website - cnn_website
networks: networks:
- cnn_network - cnn_network
pull_policy: never
container_name: caddy_proxy
cnn_api: cnn_api:
@@ -25,6 +27,8 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- cnn_network - cnn_network
pull_policy: never
container_name: cnn_api
cnn_website: cnn_website:
@@ -36,6 +40,8 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- cnn_network - cnn_network
pull_policy: never
container_name: cnn_website
networks: networks:
cnn_network: cnn_network: