mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 06:46:09 +08:00
测试编译sqlite
This commit is contained in:
parent
bf59351cf9
commit
326580b3c8
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue
Block a user