Rakshitjan commited on
Commit
18b417a
·
verified ·
1 Parent(s): 75dc380

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Copy requirements first for better layer caching
6
+ COPY requirements.txt .
7
+
8
+ # Install dependencies
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copy the application code
12
+ COPY . .
13
+
14
+ # Expose the port the app will run on
15
+ EXPOSE 7860
16
+
17
+ # Command to run the application
18
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]