Overview

1. 服务器准备

使用阿里云/华为云/Ucloud或者其它均可,优选海外可免备案

2. Github代码同步

git clone

3. 容器启动

docker run -d \
--name Blogin \
-p 3333:80 \
--restart=always \
-v /home/Blogin/Blogin-master:/app \
--privileged=true \
-e FLASK_APP=wsgi.py \
-e FLASK_DEBUG=1 \
uwsgi-nginx-flask-full \
flask run --host=0.0.0.0 --port=80

4. 登录容器进行配置

pip install --upgrade pip

更新容器内python依赖包

pip install -r requirements.txt

Last updated

Was this helpful?