RishitMishra commited on
Commit
92e7874
·
verified ·
1 Parent(s): 2fa0887

Update DockerFile

Browse files
Files changed (1) hide show
  1. DockerFile +18 -11
DockerFile CHANGED
@@ -1,11 +1,18 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /app
4
-
5
- COPY requirements.txt requirements.txt
6
- RUN pip install --no-cache-dir -r requirements.txt
7
-
8
- COPY app.py app.py
9
-
10
- EXPOSE 7860
11
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Set working directory
4
+ WORKDIR /app
5
+
6
+ # Copy dependency list + install
7
+ COPY requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ # Copy your app code
11
+ COPY app.py .
12
+
13
+ # Expose port 7860 (required by Hugging Face)
14
+ EXPOSE 7860
15
+
16
+ # Command to launch your app
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
18
+