diff --git a/Dockerfile b/Dockerfile index 3d9924c..a333bae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,10 +18,7 @@ # This image is intended to be used as a base for projects using ncc. # -# OSI labels and build-time args/envs -LABEL maintainer="Netkas " -LABEL description="ncc's official Docker image" - +# Build-time args/envs ENV GENERIC_BUILD_PATH=/tmp/ncc_build ARG PHP_VERSION=8.2 @@ -52,6 +49,11 @@ RUN cd /tmp/ncc && make redist # Main stage: Copies build files and installs all dependencies FROM php:{PHP_VERSION}-fpm-alpine AS production + +# OSI labels +LABEL maintainer="Netkas " +LABEL description="ncc's official Docker image" + ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ # Copy downloaded files diff --git a/Dockerfile.debian b/Dockerfile.debian index 0a4d5ca..73d9da4 100644 --- a/Dockerfile.debian +++ b/Dockerfile.debian @@ -18,10 +18,7 @@ # This image is intended to be used as a base for projects using ncc. # -# OSI labels and build-time args/envs -LABEL maintainer="Netkas " -LABEL description="ncc's official Docker image" - +# Build-time args/envs ENV GENERIC_BUILD_PATH=/tmp/ncc_build ARG PHP_VERSION=8.2 @@ -52,6 +49,11 @@ RUN cd /tmp/ncc && make redist # Main stage: Copies build files and installs all dependencies FROM php:{PHP_VERSION}-fpm AS production + +# OSI labels +LABEL maintainer="Netkas " +LABEL description="ncc's official Docker image" + ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ # Copy downloaded files