Arkm20 commited on
Commit
720d873
·
verified ·
1 Parent(s): 694f919

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +19 -0
dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy requirements file and install
8
+ COPY requirements.txt .
9
+
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Copy the rest of the app
13
+ COPY . .
14
+
15
+ # Expose port (FastAPI default)
16
+ EXPOSE 7860
17
+
18
+ # Start FastAPI app using uvicorn
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]