chore: Dockerfiles are cool
This commit is contained in:
parent
f88a9b4802
commit
248d420881
2 changed files with 12 additions and 8 deletions
10
Dockerfile
10
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 <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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue