mila2030 commited on
Commit
7c9fe7a
·
verified ·
1 Parent(s): b8caf85

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ RUN apt-get update && apt-get install -y git
4
+
5
+ # install pip dependencies
6
+ COPY requirements.txt .
7
+ RUN pip install -r requirements.txt
8
+
9
+ # copy source
10
+ COPY app.py .
11
+
12
+ # expose port
13
+ EXPOSE 7860
14
+
15
+ # run
16
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]