CodeXDevloper commited on
Commit
47e1959
·
verified ·
1 Parent(s): 845622f

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +4 -9
dockerfile CHANGED
@@ -1,17 +1,12 @@
1
- # Dockerfile 1 - Basic Flask API
2
- FROM python:3.9-slim
3
 
4
  WORKDIR /app
5
 
6
- # Install dependencies
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
- # Copy application code
11
- COPY app.py .
12
 
13
- # Expose port
14
- EXPOSE 5000
15
 
16
- # Run the application
17
- CMD ["python", "app.py"]
 
1
+ FROM python:3.11-slim
 
2
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ COPY . .
 
9
 
10
+ EXPOSE 7860
 
11
 
12
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]