Somalitts commited on
Commit
615271a
·
verified ·
1 Parent(s): ebf3ee0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -10
Dockerfile CHANGED
@@ -1,17 +1,17 @@
1
- # Isticmaal Python 3.10 base image
2
- FROM python:3.10
3
 
4
- # Samee working directory
5
  WORKDIR /app
6
 
7
- # Nuqul requirements
8
  COPY requirements.txt .
9
-
10
- # Ku rakib dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Nuqul dhammaan file-yada kale
14
- COPY . .
 
 
 
15
 
16
- # Run FastAPI app from app.py
17
- CMD ["uvicorn", "doctor:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10-slim
 
2
 
3
+ # Set environment
4
  WORKDIR /app
5
 
6
+ # Install dependencies
7
  COPY requirements.txt .
 
 
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
+ # Copy app code
11
+ COPY main.py .
12
+
13
+ # Expose port
14
+ EXPOSE 8000
15
 
16
+ # Start server
17
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]