Shriyakupp commited on
Commit
ceb8e9e
·
verified ·
1 Parent(s): 980dc8d

Create Dockerfile

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