From 49f0ea697ed9fe2386937ef6809e648b1ece9aed Mon Sep 17 00:00:00 2001 From: Shin <2082119+shinsenter@users.noreply.github.com> Date: Sat, 10 Aug 2024 21:43:24 +0900 Subject: [PATCH] Simplify Dockerfile --- Dockerfile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0cbb001f..ae089a8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,6 @@ -FROM bash AS build - -COPY install-php-extensions /tmp/install-php-extensions -RUN chmod +x /tmp/install-php-extensions - FROM scratch -LABEL org.opencontainers.image.source="https://github.com/mlocati/docker-php-extension-installer" \ - org.opencontainers.image.licenses="MIT" +LABEL org.opencontainers.image.source="https://github.com/mlocati/docker-php-extension-installer" +LABEL org.opencontainers.image.licenses="MIT" -COPY --from=build /tmp/install-php-extensions /usr/bin/install-php-extensions +COPY --chmod=755 install-php-extensions /usr/bin/install-php-extensions