User commited on
Commit
46fc4ae
·
1 Parent(s): c71af1b

added yaml

Browse files
Files changed (2) hide show
  1. Dockerfile +8 -3
  2. README.md +9 -0
Dockerfile CHANGED
@@ -1,10 +1,15 @@
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
 
4
 
5
- COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
- COPY . .
 
9
 
10
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
+ # Use a base image with Python
2
  FROM python:3.10-slim
3
 
4
+ # Copy your code
5
  WORKDIR /app
6
+ COPY . /app
7
 
8
+ # Install dependencies
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
+ # Expose the port your FastAPI app runs on (e.g. 7860)
12
+ EXPOSE 7860
13
 
14
+ # Run your FastAPI app
15
+ CMD ["python", "app.py"]
README.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: My RAG API
3
+ emoji: 🚀
4
+ colorFrom: blue
5
+ colorTo: indigo
6
+ sdk: docker
7
+ app_file: app.py
8
+ pinned: false
9
+ ---