prashasti commited on
Commit
9a9fd79
·
1 Parent(s): e68fb5c

Changes for dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -5
  2. requirements.txt +3 -1
Dockerfile CHANGED
@@ -2,12 +2,10 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install dependencies first
6
- COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- # Copy project
10
- COPY . .
11
 
12
- # Default: run inference script across all 3 tasks
13
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /app
4
 
5
+ COPY . .
6
+
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ EXPOSE 7860
 
10
 
 
11
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt CHANGED
@@ -1,3 +1,5 @@
1
  openai>=1.12.0
2
  pyyaml>=6.0
3
- uvicorn
 
 
 
1
  openai>=1.12.0
2
  pyyaml>=6.0
3
+ uvicorn
4
+ openai
5
+ numpy