zynt31 commited on
Commit
813ea46
·
verified ·
1 Parent(s): d12933b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile CHANGED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ ENV PYTHONDONTWRITEBYTECODE=1
4
+ ENV PYTHONUNBUFFERED=1
5
+
6
+ WORKDIR /app
7
+
8
+ # copy requirements and install
9
+ COPY requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # copy the app
13
+ COPY . .
14
+
15
+ # expose HF default port
16
+ EXPOSE 7860
17
+
18
+ # run uvicorn (Spaces expects your app to serve on port 7860)
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]