chore: Dockerfiles are cool

This commit is contained in:
badPointer 2023-10-07 12:36:59 +00:00
parent f88a9b4802
commit 248d420881
2 changed files with 12 additions and 8 deletions

View file

@ -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 <netkas@nosial.net>"
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 <netkas@nosial.net>"
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

View file

@ -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 <netkas@nosial.net>"
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 <netkas@nosial.net>"
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