ParthSadaria commited on
Commit
9b49d6b
·
verified ·
1 Parent(s): 79c95b6

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # syntax=docker/dockerfile:1
2
+ FROM python:3.10-slim
3
+
4
+ WORKDIR /app
5
+
6
+ # install deps
7
+ COPY requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ # copy your code
11
+ COPY . .
12
+
13
+ # expose HF Spaces port
14
+ EXPOSE 7860
15
+
16
+ # start your app
17
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]