hopelessDev commited on
Commit
452e3a5
·
verified ·
1 Parent(s): b4c697a

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +16 -0
  2. runtime.txt +1 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /code
4
+
5
+ # Install dependencies
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ # Copy app
10
+ COPY app.py .
11
+
12
+ # Expose port 7860 (HF Spaces expects this)
13
+ EXPOSE 7860
14
+
15
+ # Run app with uvicorn
16
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
runtime.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ python-3.10