haoqi7 commited on
Commit
f8a4c02
·
1 Parent(s): 0a6a5ae

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +13 -0
  2. docker-compose.yml +19 -0
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.6
2
+
3
+ LABEL maintainer="Lujia Zhong <937371423@qq.com>"
4
+
5
+ COPY . /detectweb
6
+
7
+ WORKDIR /detectweb
8
+
9
+ RUN pip install -r requirements.txt -i https://mirror.baidu.com/pypi/simple && pip install gunicorn&&chmod 755 run_server.sh
10
+
11
+ EXPOSE 8080
12
+
13
+ ENTRYPOINT [ "./run_server.sh" ]
docker-compose.yml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '2'
2
+
3
+ services:
4
+ web:
5
+ build:
6
+ context: .
7
+ ports:
8
+ - "8080:8080"
9
+ environment:
10
+ - MAIL_USERNAME=937371423@qq.com
11
+ - MAIL_PASSWORD=rdyuwlebtveybfae
12
+
13
+ nginx:
14
+ restart: always
15
+ build: ./nginx/
16
+ ports:
17
+ - "80:80"
18
+ links:
19
+ - web