diff --git a/Dockerfile.server b/Dockerfile.server index 510c6d5..01465bb 100644 --- a/Dockerfile.server +++ b/Dockerfile.server @@ -1,7 +1,4 @@ -FROM 1004947301/python3.7-flask:pillow - -LABEL "author"="liuyiyangwang" -LABEL "blog"="https://gitee.com/liuyiyangwang" +FROM pearadminflask/python3.7-flask:pillow COPY . /app/ COPY dockerdata/config.py /app/applications/ diff --git a/dockerdata/Dockerfile.all b/dockerdata/Dockerfile.all index 2d574f6..5811537 100644 --- a/dockerdata/Dockerfile.all +++ b/dockerdata/Dockerfile.all @@ -1,8 +1,5 @@ FROM python:3.7-alpine -LABEL "author"="liuyiyangwang" -LABEL "blog"="https://gitee.com/liuyiyangwang" - COPY . /app/ COPY dockerdata/config.py /app/applications/ COPY dockerdata/start.sh /app/ diff --git a/dockerdata/Dockerfile.flask b/dockerdata/Dockerfile.flask index 889fcd0..3a19ed6 100644 --- a/dockerdata/Dockerfile.flask +++ b/dockerdata/Dockerfile.flask @@ -1,8 +1,5 @@ FROM python:3.7-alpine -LABEL "author"="liuyiyangwang" -LABEL "blog"="https://gitee.com/liuyiyangwang" - ENV PIPURL "https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.douban.com" RUN apk update \ && apk add --virtual mysqlclient-build gcc python3-dev musl-dev \ diff --git a/dockerdata/Dockerfile.server b/dockerdata/Dockerfile.server index 8211226..8cd61e3 100644 --- a/dockerdata/Dockerfile.server +++ b/dockerdata/Dockerfile.server @@ -1,7 +1,4 @@ -FROM 1004947301/python3.7-flask:pillow - -LABEL "author"="liuyiyangwang" -LABEL "blog"="https://gitee.com/liuyiyangwang" +FROM pearadminflask/python3.7-flask:pillow COPY . /app/ COPY dockerdata/config.py /app/applications/ diff --git a/dockerdata/start.sh b/dockerdata/start.sh index f507e55..e6e643d 100644 --- a/dockerdata/start.sh +++ b/dockerdata/start.sh @@ -1,7 +1,7 @@ #!/bin/sh sleep 5 #等MySQL启动 flask db init && flask db migrate && flask db upgrade && flask admin init -exec gunicorn -c gunicorn.conf.py "applications:create_app()" +exec gunicorn -c gunicorn.conf.py "applications:create_app() --preload" while true; do echo '发生错误' sleep 100