create base image from scratch instead of bash

This commit is contained in:
freezy 2019-10-09 21:21:06 +02:00
parent 95e729b34c
commit c81447e194
No known key found for this signature in database
GPG Key ID: 4B1F485A37ABB3A9

View File

@ -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