pjxcharya commited on
Commit
fb15556
·
1 Parent(s): 38be819

initial commit

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official lightweight Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy everything
8
+ COPY app/ ./app/
9
+ COPY README.md .
10
+ COPY app/requirements.txt .
11
+
12
+ # Install dependencies
13
+ RUN pip install --upgrade pip \
14
+ && pip install -r requirements.txt
15
+
16
+ # Expose the default port for FastAPI
17
+ EXPOSE 7860
18
+
19
+ # Run the app using uvicorn
20
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]