1、termux安裝
【termux官網】
2、termux安裝Linux發行版Alpine
curl -LO https://gh.erma0.cn/https://github.com/Hax4us/TermuxAlpine/blob/master/TermuxAlpine.sh
bash TermuxAlpine.sh
startalpine
3、Alpine安裝青龍
set -x \
&& mkdir -p /ql \
&& cd /ql \
&& echo -e "\n\
export QL_DIR=/ql\n\
export QL_BRANCH=develop\n\
export LANG=zh_CN.UTF-8\n\
export TERMUX_APK_RELEASE=F-DROID\n\
export SHELL=/bin/bash\n\
export CHARSET=UTF-8\n" \
>> ~/.bashrc \
&& source ~/.bashrc \
&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk update -f \
&& apk upgrade \
&& apk --no-cache add -f bash make nodejs npm \
coreutils moreutils git curl wget tzdata perl \
openssl nginx jq openssh python3 py3-pip \
&& rm -rf /var/cache/apk/* \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& npm install -g pnpm \
&& pnpm setup \
&& source ~/.bashrc \
&& pnpm add -g pm2 ts-node typescript tslib \
&& git clone -b $QL_BRANCH https://gh.erma0.cn/https://github.com/whyour/qinglong.git $QL_DIR \
&& cd $QL_DIR \
&& cp -f .env.example .env \
&& chmod 777 $QL_DIR/shell/*.sh \
&& chmod 777 $QL_DIR/docker/*.sh \
&& pnpm install --prod \
&& rm -rf /root/.pnpm-store \
&& rm -rf /root/.local/share/pnpm/store \
&& rm -rf /root/.cache \
&& rm -rf /root/.npm \
&& git clone -b $QL_BRANCH https://gh.erma0.cn/https://github.com/whyour/qinglong-static.git /static \
&& mkdir -p $QL_DIR/static \
&& cp -rf /static/* $QL_DIR/static \
&& rm -rf /static \
&& /ql/docker/docker-entrypoint.sh