Imsachin010 commited on
Commit
10e5a7a
·
1 Parent(s): 8954d14

fix LLM proxy usage for validator

Browse files
Files changed (2) hide show
  1. Dockerfile +21 -10
  2. requirements.txt +0 -1
Dockerfile CHANGED
@@ -1,18 +1,29 @@
1
- FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Copy all files
6
- COPY . .
 
 
7
 
8
- # Install dependencies
9
- RUN pip install --no-cache-dir -r requirements.txt
 
 
10
 
11
- # Install extra needed libs
12
- RUN pip install pyyaml
13
 
14
- # Set environment
15
- ENV PYTHONPATH=/app
 
 
 
 
 
 
 
16
 
17
- # Default command
18
  CMD ["uvicorn", "app_server:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10.13-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Prevent interactive issues
6
+ ENV DEBIAN_FRONTEND=noninteractive
7
+ ENV PYTHONUNBUFFERED=1
8
+ ENV PYTHONPATH=/app
9
 
10
+ # Install system deps (safe minimal)
11
+ RUN apt-get update && apt-get install -y \
12
+ curl \
13
+ && rm -rf /var/lib/apt/lists/*
14
 
15
+ # Copy only requirements first (cache optimization)
16
+ COPY requirements.txt .
17
 
18
+ # Install python deps
19
+ RUN pip install --no-cache-dir --upgrade pip \
20
+ && pip install --no-cache-dir -r requirements.txt
21
+
22
+ # Copy rest of code
23
+ COPY . .
24
+
25
+ # Expose port
26
+ EXPOSE 7860
27
 
28
+ # Start server
29
  CMD ["uvicorn", "app_server:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt CHANGED
@@ -1,7 +1,6 @@
1
  pydantic==2.7.1
2
  typing-extensions
3
  python-dotenv
4
- pytest
5
  pyyaml
6
  fastapi
7
  uvicorn
 
1
  pydantic==2.7.1
2
  typing-extensions
3
  python-dotenv
 
4
  pyyaml
5
  fastapi
6
  uvicorn