change the docker base image to node:14-alpine3.14, reduce the container size

This commit is contained in:
LouisLam 2021-07-13 11:32:09 +08:00
parent 0f1a95fde9
commit 99afdabcac
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,8 @@
FROM node:14
FROM node:14-alpine3.14
# sqlite have to build on arm
RUN apk add --no-cache make g++ python3
RUN ln -s /usr/bin/python3 /usr/bin/python
WORKDIR /app
COPY . .