From c81447e1946e3a6ae0656606c18ded58cbef42c6 Mon Sep 17 00:00:00 2001 From: freezy Date: Wed, 9 Oct 2019 21:21:06 +0200 Subject: [PATCH] create base image from scratch instead of bash --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b2b0c1a..09c662a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,8 @@ -FROM bash +FROM bash AS build -COPY install-php-extensions /usr/bin/install-php-extensions -RUN chmod +x /usr/bin/install-php-extensions +COPY install-php-extensions /tmp/install-php-extensions +RUN chmod +x /tmp/install-php-extensions + +FROM scratch + +COPY --from=build /tmp/install-php-extensions /usr/bin/install-php-extensions