From ab8b47864804a4d8cf418cc4b6e1735d7603f967 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 29 May 2019 15:52:42 -0700 Subject: [PATCH] Improve "slides/Dockerfile" reliability/image size This pins to a specific version of Alpine to insulate against Alpine version bumps renaming packages (or changing the way they work like when `pip` got split out into a separate package) and uses `apk add --no-cache` instead of `apk update` to create a slightly smaller end result. --- slides/Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/slides/Dockerfile b/slides/Dockerfile index c9390edb..491b015f 100644 --- a/slides/Dockerfile +++ b/slides/Dockerfile @@ -1,7 +1,4 @@ -FROM alpine -RUN apk update -RUN apk add entr -RUN apk add py-pip -RUN apk add git +FROM alpine:3.9 +RUN apk add --no-cache entr py-pip git COPY requirements.txt . RUN pip install -r requirements.txt