diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3c9379c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.8.12 AS runner +MAINTAINER jeyrce@gmail.com +WORKDIR /ishare +ADD . . +RUN pip install -r requirements.txt \ + -i https://mirrors.aliyun.com/pypi/simple/ \ + --trusted-host mirrors.aliyun.com \ + --no-cache-dir && python manager.py collectstatic + +EXPOSE 7777:7777 +CMD ["/usr/local/bin/uwsgi", "--ini", "/ishare/confs/uwsgi/uwsgi-docker.ini"] + diff --git a/LICENSE.txt b/LICENSE.txt index fafd70f..4f8c80b 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 jeeyshe +Copyright (c) 2019~2021 jeyrce Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/confs/uwsgi/uwsgi-docker.ini b/confs/uwsgi/uwsgi-docker.ini new file mode 100644 index 0000000..2dcdae0 --- /dev/null +++ b/confs/uwsgi/uwsgi-docker.ini @@ -0,0 +1,16 @@ +[uwsgi] +chdir=/ishare +module=ishare.wsgi:application +wsgi-file = /ishare/ishare/wsgi.py +socket=127.0.0.1:7777 +workers=3 +pidfile=/ishare/confs/uwsgi-docker.pid +uid=root +gid=root +master=true +vacuum=true +thunder-lock=true +enable-threads=true +harakiri=30 +post-buffering=4096 +pythonpath=/usr/lib/python3.8/site-packages diff --git a/ishare/auth.py b/ishare/auth.py index 54e88ba..76c8325 100644 --- a/ishare/auth.py +++ b/ishare/auth.py @@ -1,6 +1,6 @@ # coding: utf-8 """ -Created by Jeeyshe 2020/4/1 下午8:45, contact with jeeyshe@gmail.com or website https://www.lujianxin.com +Created by Jeyrce.Lu 2020/4/1 下午8:45, contact with jeyrce@gmail.com or website https://www.lujianxin.com --------------------------------------------------------------------------------------------------------- >>> 本站登录认证方式 """ diff --git a/ishare/forms.py b/ishare/forms.py index c38eb15..a9d7a03 100644 --- a/ishare/forms.py +++ b/ishare/forms.py @@ -1,6 +1,6 @@ # coding: utf-8 """ -Created by Jeeyshe 2020/4/1 下午10:24, contact with jeeyshe@gmail.com or website https://www.lujianxin.com +Created by Jeyrce.Lu 2020/4/1 下午10:24, contact with jeyrce@gmail.com or website https://www.lujianxin.com --------------------------------------------------------------------------------------------------------- >>> 表单文件 """ diff --git a/ishare/views.py b/ishare/views.py index a7f143d..bc853f2 100644 --- a/ishare/views.py +++ b/ishare/views.py @@ -1,6 +1,6 @@ # coding: utf-8 """ -Created by Lu Jianxin at 2019/03/08 16:56, for any questions contact me with jeeysie@gmail.com. +Created by Lu Jeyrce.Lu at 2019/03/08 16:56, for any questions contact me with jeyrce@gmail.com. Some ideas of the file: 0. 首页 """ diff --git a/tasks/__init__.py b/tasks/__init__.py index 57840b2..97d481a 100644 --- a/tasks/__init__.py +++ b/tasks/__init__.py @@ -5,8 +5,8 @@ #============================================================================= # FileName: __init__.py.py # Desc: 项目中所需的异步任务 -# Author: jeeyshe -# Email: jianxin.lu@woqutech.com +# Author: Jeyrce.Lu +# Email: jeyrce@gmail.com # HomePage: www.lujianxin.com # Created: 2019/9/30 下午4:17 #============================================================================= diff --git a/tasks/cron.py b/tasks/cron.py index 08656f7..1c3f730 100644 --- a/tasks/cron.py +++ b/tasks/cron.py @@ -1,6 +1,6 @@ # coding: utf-8 """ -Created by Jeeyshe 2020/4/4 下午5:16, contact with jeeyshe@gmail.com or website https://www.lujianxin.com +Created by Jeyrce.Lu 2020/4/4 下午5:16, contact with jeyrce@gmail.com or website https://www.lujianxin.com --------------------------------------------------------------------------------------------------------- >>> 项目中的一些定时任务 """ diff --git a/tasks/ops.py b/tasks/ops.py index f8bca0b..b79c684 100644 --- a/tasks/ops.py +++ b/tasks/ops.py @@ -1,6 +1,6 @@ # coding: utf-8 """ -Created by Jeeyshe 2020/5/1 上午10:29, contact with jeeyshe@gmail.com or website https://www.lujianxin.com +Created by Jeyrce 2020/5/1 上午10:29, contact with jeyrce@gmail.com or website https://www.lujianxin.com --------------------------------------------------------------------------------------------------------- >>> 一些异步任务 """