修复entrypoint步骤

This commit is contained in:
hanhh
2021-07-01 18:52:50 +08:00
parent 7ecd38ad1f
commit a14a8cc067
2 changed files with 13 additions and 9 deletions
+4 -4
View File
@@ -29,14 +29,11 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
&& echo "Asia/Shanghai" > /etc/timezone \
&& touch ~/.bashrc \
&& mkdir /run/nginx \
&& git clone -b ${QL_BRANCH} https://github.com/whyour/qinglong-static.git /static \
&& git clone -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \
&& git config --global user.email "qinglong@@users.noreply.github.com" \
&& git config --global user.name "qinglong" \
&& git config --global pull.rebase true \
&& cd ${QL_DIR} \
&& cp -rf /static/* ./ \
&& rm -rf /static \
&& cp -f .env.example .env \
&& chmod 777 ${QL_DIR}/shell/*.sh \
&& chmod 777 ${QL_DIR}/docker/*.sh \
@@ -44,5 +41,8 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
&& npm install -g pnpm \
&& rm -rf /root/.npm \
&& pnpm install --prod \
&& rm -rf /root/.pnpm-store
&& rm -rf /root/.pnpm-store \
&& git clone -b ${QL_BRANCH} https://github.com/whyour/qinglong-static.git /static \
&& cp -rf /static/* ${QL_DIR} \
&& rm -rf /static
ENTRYPOINT ["./docker/docker-entrypoint.sh"]