reveseforward commited on
Commit
d3cedd7
·
1 Parent(s): 417a05f
Files changed (2) hide show
  1. Dockerfile +0 -36
  2. docker-compose.yml +0 -18
Dockerfile DELETED
@@ -1,36 +0,0 @@
1
- FROM nvidia/cuda:12.1.0-runtime-ubuntu22.04
2
-
3
- # Set working directory
4
- WORKDIR /app
5
-
6
- # Install system dependencies
7
- RUN apt-get update && apt-get install -y \
8
- python3.10 \
9
- python3-pip \
10
- git \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- # Create symlink for python
14
- RUN ln -s /usr/bin/python3.10 /usr/bin/python
15
-
16
- # Upgrade pip
17
- RUN pip install --no-cache-dir --upgrade pip setuptools wheel
18
-
19
- # Copy requirements
20
- COPY requirements.txt .
21
-
22
- # Install Python dependencies
23
- RUN pip install --no-cache-dir -r requirements.txt
24
-
25
- # Copy app
26
- COPY app.py .
27
-
28
- # Expose streamlit port
29
- EXPOSE 8501
30
-
31
- # Set environment variables
32
- ENV PYTHONUNBUFFERED=1
33
- ENV CUDA_VISIBLE_DEVICES=0
34
-
35
- # Run streamlit
36
- CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
docker-compose.yml DELETED
@@ -1,18 +0,0 @@
1
- version: '3.8'
2
-
3
- services:
4
- qwen3-app:
5
- build: .
6
- container_name: qwen3-vl-app
7
- runtime: nvidia
8
- environment:
9
- - NVIDIA_VISIBLE_DEVICES=all
10
- - NVIDIA_DRIVER_CAPABILITIES=compute,utility
11
- - CUDA_VISIBLE_DEVICES=0
12
- ports:
13
- - "8501:8501"
14
- volumes:
15
- - ./models:/root/.cache/huggingface/hub:ro
16
- shm_size: '16gb'
17
- stdin_open: true
18
- tty: true