plan to switch to better-sqlite3, drop node-sqlite3

This commit is contained in:
LouisLam
2021-08-23 17:27:03 +08:00
parent a02edf1b4f
commit 2f50fc4c00
4 changed files with 351 additions and 10437 deletions

View File

@@ -2,10 +2,10 @@
FROM node:14-alpine3.12 AS release
WORKDIR /app
# split the sqlite install here, so that it can caches the arm prebuilt
# split the sqlite install here, so that it can caches the prebuilt
RUN apk add --no-cache --virtual .build-deps make g++ python3 python3-dev && \
ln -s /usr/bin/python3 /usr/bin/python && \
npm install @louislam/sqlite3@5.0.3 bcrypt@5.0.1 && \
npm install better-sqlite3@7.4.3 bcrypt@5.0.1 && \
apk del .build-deps && \
rm -f /usr/bin/python