sagar008 commited on
Commit
dfa7940
·
verified ·
1 Parent(s): de5b594

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,15 +1,16 @@
1
  FROM python:3.10
2
 
 
3
  WORKDIR /app
4
 
5
- # Create a safe local cache directory for models
6
  RUN mkdir -p /app/cache
7
 
8
- # Copy all code files
9
  COPY . .
10
 
11
  # Install dependencies
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
- # Run the FastAPI app using uvicorn
15
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10
2
 
3
+ # Set working directory
4
  WORKDIR /app
5
 
6
+ # Create writable cache directory
7
  RUN mkdir -p /app/cache
8
 
9
+ # Copy all files
10
  COPY . .
11
 
12
  # Install dependencies
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ # Run app with uvicorn
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]