changed dockerfile and requirements.txt
This commit is contained in:
+4
-2
@@ -6,11 +6,13 @@ RUN apt-get update && apt-get install -y \
|
||||
bash \
|
||||
&& 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 torch torchvision --index-url https://download.pytorch.org/whl/cpu
|
||||
Copy . .
|
||||
|
||||
RUN chmod +x start_server.sh
|
||||
|
||||
|
||||
@@ -3,4 +3,7 @@ networkx==3.6.1
|
||||
numpy==2.3.4
|
||||
tqdm==4.67.3
|
||||
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
|
||||
@@ -14,6 +14,8 @@ services:
|
||||
- cnn_website
|
||||
networks:
|
||||
- cnn_network
|
||||
pull_policy: never
|
||||
container_name: caddy_proxy
|
||||
|
||||
|
||||
cnn_api:
|
||||
@@ -25,6 +27,8 @@ services:
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- cnn_network
|
||||
pull_policy: never
|
||||
container_name: cnn_api
|
||||
|
||||
|
||||
cnn_website:
|
||||
@@ -36,6 +40,8 @@ services:
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- cnn_network
|
||||
pull_policy: never
|
||||
container_name: cnn_website
|
||||
|
||||
networks:
|
||||
cnn_network:
|
||||
|
||||
Reference in New Issue
Block a user