lijiacai commited on
Commit
6975cd6
1 Parent(s): 6174e64

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ RUN apt update -y && apt install -y git
4
+
5
+
6
+ WORKDIR /code
7
+
8
+ RUN git clone https://gitee.com/net-pan-resource-share/simple-admin.git
9
+
10
+ RUN pip install --no-cache-dir --upgrade -r /code/simple-admin/requirements.txt
11
+ WORKDIR /code/simple-admin
12
+
13
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "10"]