增加dust仓库秘钥

This commit is contained in:
whyour
2021-04-11 23:21:43 +08:00
parent 947a753610
commit c2964ec1bb
3 changed files with 18 additions and 7 deletions
+7 -3
View File
@@ -2,6 +2,7 @@ FROM node:lts-alpine
LABEL maintainer="whyour"
ARG QL_BASE_URL=https://github.com.cnpmjs.org/whyour/qinglong
ARG QL_BASE_BRANCH=master
ARG SSH_PRIVATE_KEY
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
LANG=zh_CN.UTF-8 \
SHELL=/bin/bash \
@@ -15,19 +16,22 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
coreutils \
moreutils \
git \
wget \
curl \
nano \
tzdata \
perl \
openssl \
nginx \
python3 \
yarn \
jq \
openssh \
&& rm -rf /var/cache/apk/* \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& mkdir -p /root/.ssh \
&& chmod 700 /root/.ssh \
&& echo -e $SSH_PRIVATE_KEY > /root/.ssh/id_rsa \
&& chmod 600 /root/.ssh/id_rsa \
&& ssh-keyscan github.com > /root/.ssh/known_hosts \
&& touch ~/.bashrc \
&& mkdir /run/nginx \
&& git clone -b ${QL_BASE_BRANCH} ${QL_BASE_URL} ${QL_DIR} \