no need to build sqlite and add nightly for alpine

This commit is contained in:
LouisLam
2021-09-21 10:47:55 +08:00
parent 4591adc05e
commit 1c8b3ce451
3 changed files with 2 additions and 15 deletions

View File

@@ -2,13 +2,6 @@
FROM node:14-alpine3.12 AS build
WORKDIR /app
# split the sqlite install here, so that it can caches the arm prebuilt
RUN apk add --no-cache --virtual .build-deps make g++ python3 python3-dev git && \
ln -s /usr/bin/python3 /usr/bin/python && \
npm install mapbox/node-sqlite3#593c9d && \
apk del .build-deps && \
rm -f /usr/bin/python
COPY . .
RUN npm install --legacy-peer-deps && \
npm run build && \