Skip to content

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jianxin.lu authored and jeyrce committed Jan 11, 2022
1 parent 546190f commit 58407f9
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 8 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM python:3.8.12 AS runner
MAINTAINER [email protected]
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"]

2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 16 additions & 0 deletions confs/uwsgi/uwsgi-docker.ini
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion ishare/auth.py
Original file line number Diff line number Diff line change
@@ -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
---------------------------------------------------------------------------------------------------------
>>> 本站登录认证方式
"""
Expand Down
2 changes: 1 addition & 1 deletion ishare/forms.py
Original file line number Diff line number Diff line change
@@ -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
---------------------------------------------------------------------------------------------------------
>>> 表单文件
"""
Expand Down
2 changes: 1 addition & 1 deletion ishare/views.py
Original file line number Diff line number Diff line change
@@ -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. 首页
"""
Expand Down
4 changes: 2 additions & 2 deletions tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#=============================================================================
Expand Down
2 changes: 1 addition & 1 deletion tasks/cron.py
Original file line number Diff line number Diff line change
@@ -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
---------------------------------------------------------------------------------------------------------
>>> 项目中的一些定时任务
"""
Expand Down
2 changes: 1 addition & 1 deletion tasks/ops.py
Original file line number Diff line number Diff line change
@@ -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
---------------------------------------------------------------------------------------------------------
>>> 一些异步任务
"""
Expand Down

0 comments on commit 58407f9

Please sign in to comment.