subbunanepalli commited on
Commit
4f6a3c3
·
verified ·
1 Parent(s): 5058bf2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -8
Dockerfile CHANGED
@@ -1,15 +1,18 @@
1
- # Use a lightweight Python base image
2
- FROM python:3.10-slim
3
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
- # Copy dependency file and install
8
- COPY requirements.txt .
9
- RUN pip install --no-cache-dir -r requirements.txt
10
-
11
- # Copy entire project into container
12
  COPY . .
13
 
14
- # Expose the FastAPI app
 
 
 
 
 
 
 
15
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # Use official Python image
2
+ FROM python:3.10
3
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
+ # Copy all files
 
 
 
 
8
  COPY . .
9
 
10
+ # Install dependencies
11
+ RUN pip install --upgrade pip && \
12
+ pip install -r requirements.txt
13
+
14
+ # Expose port
15
+ EXPOSE 7860
16
+
17
+ # Run the app
18
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]