更新dockerfile

This commit is contained in:
whyour
2022-01-12 00:55:14 +08:00
parent ee84cbca51
commit a0ce1562ac
2 changed files with 6 additions and 15 deletions
+3 -15
View File
@@ -31,25 +31,13 @@ RUN set -x \
python2 \
g++ \
make \
sqlite \
sqlite-dev \
&& 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" \
&& wget https://github.com/mapbox/node-sqlite3/archive/v5.0.2.zip -O /ql/sqlite3.zip \
&& mkdir -p /ql/sqlite3 \
&& mkdir -p /ql/node_modules/sqlite3 \
&& unzip /ql/sqlite3.zip -d /ql/sqlite3 \
&& cd /ql/sqlite3/node-sqlite3-5.0.2 \
&& npm install \
&& ./node_modules/.bin/node-pre-gyp install --fallback-to-build --build-from-source --sqlite=/usr/bin --python=$(which python) \
&& mv /ql/sqlite3/node-sqlite3-5.0.2 /ql/node_modules/sqlite3 \
&& apk del g++ make python2 \
&& rm -Rf /ql/sqlite3 /ql/sqlite3.zip \
&& rm -rf /var/cache/apk/* \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& touch ~/.bashrc \
&& 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" \
&& cd ${QL_DIR} \
&& cp -f .env.example .env \
&& chmod 777 ${QL_DIR}/shell/*.sh \