Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
luolongfei committed May 14, 2022
2 parents f8b92da + d3217dc commit b9f6f84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ RUN set -eux \
VOLUME ["/conf", "/app/logs"]

COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh

ENTRYPOINT ["docker-entrypoint.sh"]

CMD ["crond", "-f"]
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ plain='\033[0m'
# 生成配置文件
if [ ! -f /conf/.env ]; then
cp /app/.env.example /conf/.env
echo -e "[${green}Info${plain}] 已生成 .env 文件,请将 .env 文件中的配置项改为你自己的,然后重启容器"
echo -e "[${green}Info${plain}] 已生成 .env 文件,请将 .env 文件中的配置项改为你自己的,然后重启容器(如果你是在第三方 Docker 环境中使用容器,例如 railway/heroku 等平台,可忽略本条提醒)"
fi
if [ ! -f /app/.env ]; then
ln -s /conf/.env /app/.env
Expand Down

0 comments on commit b9f6f84

Please sign in to comment.