lucky0146 commited on
Commit
a5fd9cf
·
verified ·
1 Parent(s): 7aaccfe

Create dockerfile

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