测试编译sqlite

This commit is contained in:
whyour 2022-01-10 23:10:59 +08:00
parent bf59351cf9
commit 326580b3c8

View File

@ -31,6 +31,17 @@ RUN set -x \
python2 \
g++ \
make \
sqlite \
sqlite-dev \
&& wget https://github.com/mapbox/node-sqlite3/archive/v5.0.2.zip -O /ql/sqlite3.zip \
&& mkdir -p /ql/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 python \
&& 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 \