shoaibmoghal commited on
Commit
ae96028
·
verified ·
1 Parent(s): 286ac47

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -19
Dockerfile CHANGED
@@ -1,19 +1,18 @@
1
- # Use official Python image
2
- FROM python:3.10
3
-
4
- # Set working directory
5
- WORKDIR /app
6
-
7
- # Copy files
8
- COPY requirements.txt requirements.txt
9
- COPY app.py app.py
10
- COPY models models
11
-
12
- # Install dependencies
13
- RUN pip install --no-cache-dir -r requirements.txt
14
-
15
- # Expose API port
16
- EXPOSE 7860
17
-
18
- # Run FastAPI
19
- 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 files
8
+ COPY requirements.txt requirements.txt
9
+ COPY app.py app.py
10
+
11
+ # Install dependencies
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Expose API port
15
+ EXPOSE 7860
16
+
17
+ # Run FastAPI
18
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]