mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-27 14:46:06 +08:00
更新docker entrypoint
This commit is contained in:
parent
641cdcddef
commit
9a7781bac5
|
@ -1,7 +1,7 @@
|
||||||
FROM node:lts-alpine
|
FROM node:lts-alpine
|
||||||
LABEL maintainer="whyour"
|
LABEL maintainer="whyour"
|
||||||
ARG QL_URL=https://github.com.cnpmjs.org/whyour/qinglong
|
ARG QL_URL=https://github.com.cnpmjs.org/whyour/qinglong
|
||||||
ARG QL_BRANCH=dev
|
ARG QL_BRANCH=master
|
||||||
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
|
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
|
||||||
LANG=zh_CN.UTF-8 \
|
LANG=zh_CN.UTF-8 \
|
||||||
SHELL=/bin/bash \
|
SHELL=/bin/bash \
|
||||||
|
|
|
@ -1,22 +1,23 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo -e "======================1. 初始化命令========================\n"
|
|
||||||
dir_shell=/ql/shell
|
dir_shell=/ql/shell
|
||||||
. $dir_shell/share.sh
|
. $dir_shell/share.sh
|
||||||
link_shell
|
link_shell
|
||||||
|
echo -e "======================1. 更新源代码========================\n"
|
||||||
echo -e "======================2. 更新源代码========================\n"
|
|
||||||
ql update
|
ql update
|
||||||
|
echo
|
||||||
|
|
||||||
echo -e "======================3. 检测配置文件========================\n"
|
echo -e "======================2. 检测配置文件========================\n"
|
||||||
fix_config
|
fix_config
|
||||||
cp -fv $dir_root/docker/front.conf /etc/nginx/conf.d/front.conf
|
cp -fv $dir_root/docker/front.conf /etc/nginx/conf.d/front.conf
|
||||||
|
echo
|
||||||
|
|
||||||
echo -e "======================4. 启动nginx========================\n"
|
echo -e "======================3. 启动nginx========================\n"
|
||||||
nginx -c /etc/nginx/nginx.conf
|
nginx -s reload || nginx -c /etc/nginx/nginx.conf
|
||||||
|
echo
|
||||||
|
|
||||||
echo -e "======================5. 启动控制面板========================\n"
|
echo -e "======================4. 启动控制面板========================\n"
|
||||||
pm2 start $dir_root/build/app.js -n panel
|
pm2 start $dir_root/build/app.js -n panel
|
||||||
echo -e "控制面板启动成功...\n"
|
echo -e "控制面板启动成功...\n"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user