CwAnkit07 commited on
Commit
f0f8ae9
·
verified ·
1 Parent(s): 7737855

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Official Python Image
2
+ FROM python:3.9
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 Port 7860 (Used by Hugging Face)
15
+ EXPOSE 7860
16
+
17
+ # Start FastAPI Server
18
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]