Digambar29 commited on
Commit
afd1252
·
verified ·
1 Parent(s): 5065ace

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -11,11 +11,11 @@ COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  # 5. Copy only necessary app files
14
- COPY model/ /model/
15
- COPY api.py /app/api.py
16
 
17
  # 6. Expose the port FastAPI will run on
18
  EXPOSE 7860
19
 
20
  # 7. Start the FastAPI app
21
- CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
 
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  # 5. Copy only necessary app files
14
+ COPY model/ /app/model/
15
+ COPY api/ /app/api/
16
 
17
  # 6. Expose the port FastAPI will run on
18
  EXPOSE 7860
19
 
20
  # 7. Start the FastAPI app
21
+ CMD ["uvicorn", "api.api:app", "--host", "0.0.0.0", "--port", "7860"]