From fdb4969b6185acfde931e41d3e7468e79c8b36dc Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Wed, 9 May 2018 11:13:04 +0100 Subject: [PATCH 1/2] Make base image configurable and default to stretch-slim --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index dd7b352..2934321 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,9 @@ # FROM alpine:latest # RUN apk --update upgrade && apk add bash nfs-utils && rm -rf /var/cache/apk/* -FROM debian:stable +ARG BUILD_FROM=debian:stretch-slim + +FROM $BUILD_FROM # kmod is required for lsmod # libcap2-bin is required for checking capabilities From 60c8b13ba0e8a548c806c35b024edb37c451046d Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Wed, 9 May 2018 11:14:02 +0100 Subject: [PATCH 2/2] Install with noninteractive as no readline --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2934321..c3d74d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,8 @@ ARG BUILD_FROM=debian:stretch-slim FROM $BUILD_FROM +ENV DEBIAN_FRONTEND=noninteractive + # kmod is required for lsmod # libcap2-bin is required for checking capabilities RUN apt-get update && \