Stroke-ia commited on
Commit
ff67d18
·
verified ·
1 Parent(s): 0d0740b

Create dokerfile

Browse files
Files changed (1) hide show
  1. dokerfile +16 -0
dokerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
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 API
10
+ COPY api.py .
11
+
12
+ # Expose port
13
+ EXPOSE 7860
14
+
15
+ # Run FastAPI with uvicorn
16
+ CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]