-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8fde9fd
commit ccd9e27
Showing
3 changed files
with
42 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM baiyuetribe/kamifaka:v1.3 | ||
LABEL 维护者="佰阅 [email protected]" | ||
LABEL stable="v1.3" | ||
# 备选数据库Sqlite \Mysql \ PostgreSQL | ||
ENV DB_TYPE='Sqlite' | ||
ENV DB_HOST='127.0.0.1' | ||
ENV DB_PORT='3306' | ||
ENV DB_USER='KAMIFKA' | ||
ENV DB_PASSWORD='PASSWORD' | ||
ENV DB_DATABASE='KAMIFKA' | ||
|
||
WORKDIR /usr/src/app | ||
|
||
RUN echo "<!DOCTYPE html><html lang=\"zh-cn\"><head><meta charset=\"utf-8\"><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\"><link rel=\"icon\" href=\"images/favicon.ico\"><link href=\"https://cdn.jsdelivr.net/gh/Baiyuetribe/[email protected]/vendor.0784d59c.css\" rel=\"stylesheet\"><link href=\"https://cdn.jsdelivr.net/gh/Baiyuetribe/[email protected]/styles.da19693f.css\" rel=\"stylesheet\"></head><body><noscript><strong>We're sorry but kamifaka doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=\"app\"></div><script src=\"https://cdn.jsdelivr.net/gh/Baiyuetribe/[email protected]/vendor.aa000dcd.js\"></script><script src=\"https://cdn.jsdelivr.net/gh/Baiyuetribe/[email protected]/styles.61405570.js\"></script><script src=\"https://cdn.jsdelivr.net/gh/Baiyuetribe/[email protected]/app.383e05ff.js\"></script></body></html>" > /usr/src/app/dist/index.html | ||
|
||
# 用于替换logo | ||
COPY logo.png /usr/src/app/service/system/logo.png | ||
|
||
EXPOSE 8000 | ||
|
||
ENTRYPOINT [ "/usr/src/app/docker-entrypoint.sh" ] | ||
|
||
# ENTRYPOINT ["gunicorn","-k", "gevent", "--bind", "0.0.0.0:8000", "--workers", "8", "app:app"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,10 @@ def init_db(update=False): | |
db.session.add(Order('演示订单4455','普通商品演示','虎皮椒微信','[email protected]','非常感谢',9.99,3,1.97,None)) #卡密为None或‘’空都可以 | ||
db.session.add(Order('演示订单4456','普通商品演示','虎皮椒支付宝','[email protected]','不错',9.99,1,0.9,'')) | ||
db.session.add(Order('演示订单4457','普通商品演示','虎皮椒支付宝','[email protected]','不错',9.99,1,1.9,'')) | ||
# | ||
|
||
# 插件配置信息 | ||
db.session.add(Plugin('TG发卡',"{'TG_TOKEN':'xxxxxxxxxxxx'}",False)) | ||
db.session.add(Plugin('微信公众号',"{'PID':'xxxxxxxxxxxx'}",False)) | ||
|
||
db.session.commit() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters