saikiran76 commited on
Commit
443210d
·
2 Parent(s): ab92b2d3e2e34f

git add requirements.txt

Browse files

git commit -m "Fix missing FastAPI dependencies"
git push hf mainerge branch 'main' of https://huggingface.co/spaces/ksk76/structural-encoder-uplan into fresh-deploy

Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python image
2
+ FROM python:3.11
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy requirements and install
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copy the rest of your app (server.py, ui folder, agents, etc.)
12
+ COPY . .
13
+
14
+ # Hugging Face exposes port 7860
15
+ EXPOSE 7860
16
+
17
+ # Start FastAPI via Uvicorn
18
+ CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]