From 99afdabcacdc62772ad9cdbc87737e668c41daa8 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Tue, 13 Jul 2021 11:32:09 +0800 Subject: [PATCH] change the docker base image to node:14-alpine3.14, reduce the container size --- dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dockerfile b/dockerfile index cf7dd501..595d99f0 100644 --- a/dockerfile +++ b/dockerfile @@ -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 . .