rogerxavier commited on
Commit
1f8c9c8
1 Parent(s): b9d0462

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+ RUN apt update && apt install -y libgl1-mesa-glx
3
+ USER root
4
+ COPY . .
5
+
6
+ RUN pip install -U pip
7
+
8
+
9
+ RUN pip install -r requirements.txt
10
+
11
+ #存放所有manga目录
12
+ RUN mkdir -m 777 -p manga_all
13
+ #遮罩存放
14
+ RUN mkdir -m 777 -p mask
15
+
16
+ EXPOSE 7860
17
+
18
+ #server.py
19
+ CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]