From 2dd9683eb1f86a83ab8b8fd1598236526bd79f23 Mon Sep 17 00:00:00 2001 From: Colin Nelson Date: Tue, 19 Nov 2019 10:52:12 -0800 Subject: [PATCH] feat: use alpine for Dockerfile Reduces resultant image size to ~942MB (was 1.55GB). --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7780085b9..1161e1b99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,11 @@ -FROM node:12.10.0-buster +FROM node:12.10.0-alpine LABEL maintainer="Liyas Thomas (liyascthomas@gmail.com)" +# Add git as the prebuild target requires it to parse version information +RUN apk add --update --no-cache \ + git + WORKDIR /app COPY . .