VesperAI commited on
Commit
fd546cb
·
1 Parent(s): 7ee60a0

addede a Production Branch

Browse files
Files changed (3) hide show
  1. .env.example +9 -0
  2. Dockerfile +9 -1
  3. requirements.txt +8 -8
.env.example ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Example environment variables
2
+ # Copy this file to .env and fill in your actual values
3
+
4
+ QDRANT_API_KEY=your_qdrant_api_key_here
5
+ QDRANT_URL=your_qdrant_cluster_url_here
6
+
7
+ # Example:
8
+ # QDRANT_API_KEY=abc123def456...
9
+ # QDRANT_URL=https://your-cluster.qdrant.tech:6333
Dockerfile CHANGED
@@ -2,9 +2,17 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /code
4
 
 
 
 
 
 
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
7
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
8
 
9
  COPY . /code
10
 
 
2
 
3
  WORKDIR /code
4
 
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ gcc \
8
+ g++ \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
  COPY ./requirements.txt /code/requirements.txt
12
 
13
+ # Install Python dependencies with specific pip options
14
+ RUN pip install --no-cache-dir --upgrade pip && \
15
+ pip install --no-cache-dir --timeout 1000 -r /code/requirements.txt
16
 
17
  COPY . /code
18
 
requirements.txt CHANGED
@@ -1,17 +1,17 @@
1
  fastapi
2
- uvicorn
3
- torch
4
- torchvision
5
- transformers
6
- Pillow
7
  python-multipart
8
  watchdog
9
- numpy
10
- qdrant-client
11
  aiofiles
12
  jinja2
13
- uvicorn[standard]
14
  websockets
15
  python-dotenv
16
  httpx
17
  accelerate
 
 
1
  fastapi
2
+ uvicorn[standard]
3
+ torch>=1.9.0
4
+ torchvision>=0.10.0
5
+ transformers>=4.21.0
6
+ Pillow>=8.3.0
7
  python-multipart
8
  watchdog
9
+ numpy>=1.21.0
10
+ qdrant-client>=1.6.0
11
  aiofiles
12
  jinja2
 
13
  websockets
14
  python-dotenv
15
  httpx
16
  accelerate
17
+ tqdm>=4.64.0