-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 维护者="佰阅 2894049053@qq.com" | ||
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/kamifaka@v1.3/vendor.0784d59c.css\" rel=\"stylesheet\"><link href=\"https://cdn.jsdelivr.net/gh/Baiyuetribe/kamifaka@v1.3/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/kamifaka@v1.3/vendor.aa000dcd.js\"></script><script src=\"https://cdn.jsdelivr.net/gh/Baiyuetribe/kamifaka@v1.3/styles.61405570.js\"></script><script src=\"https://cdn.jsdelivr.net/gh/Baiyuetribe/kamifaka@v1.3/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
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