HemanthR007 commited on
Commit
0fa9b82
·
verified ·
1 Parent(s): 19c7eb6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -20,11 +20,12 @@ RUN apt-get update && apt-get install -y \
20
  COPY requirements.txt .
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
- # Copy app files
24
- COPY . .
 
25
 
26
  # Expose port
27
  EXPOSE 7860
28
 
29
  # Run FastAPI app with uvicorn
30
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
20
  COPY requirements.txt .
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
+ # Copy app code
24
+ COPY . /app
25
+ WORKDIR /app
26
 
27
  # Expose port
28
  EXPOSE 7860
29
 
30
  # Run FastAPI app with uvicorn
31
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]