-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Complete rewrite using [nushell](https://nushell.sh)** ## Major updates and breaking changes * To enter nushell do `docker exec -it container_name nu` and type `bf-php + tab` to see a complete list of functions * All environment variables now begin `BF_PHP` ## Minor updates * Updating to PHP 8.1.25 and 8.2.12 ## Build updates * Updating workflows to latest versions * Using -dev instead of -beta for development builds ## Development updates * Enforcing LF line endings
- Loading branch information
Showing
63 changed files
with
374 additions
and
577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Always use LF endings. | ||
* text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,41 @@ | ||
FROM bfren/nginx:nginx1.20-alpine3.15-5.0.16 | ||
#====================================================================================================================== | ||
# STAGE 0: get Nu scripts from the PHP image overlay | ||
#====================================================================================================================== | ||
|
||
FROM alpine AS php | ||
|
||
WORKDIR /tmp | ||
RUN \ | ||
# get the Nu scripts from the PHP image overlay | ||
echo "Cloning Alpine overlay." && \ | ||
apk add git && git clone --branch v2.0.0 https://github.com/bfren/docker-php.git && \ | ||
mkdir /overlay && \ | ||
mv docker-php/overlay/etc /overlay/ | ||
|
||
|
||
#====================================================================================================================== | ||
# STAGE 1: create final image | ||
#====================================================================================================================== | ||
|
||
FROM bfren/nginx:nginx1.20-alpine3.15-6.0.0 as final | ||
COPY --from=php /overlay / | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-php" | ||
|
||
ARG BF_IMAGE | ||
ARG BF_VERSION | ||
|
||
COPY ./overlay / | ||
COPY ./7.4/overlay / | ||
|
||
ENV \ | ||
# PHP config directory | ||
PHP_DIR="/etc/php7" \ | ||
# www.conf override: log_level | ||
PHP_FPM_LOG_LEVEL="notice" \ | ||
# php.ini template to use, or 'custom' if you want to bind your own custom php.ini - | ||
# which will cause the other PHP_INI_* environment variables to be ignored | ||
PHP_INI="production" \ | ||
# php.ini override: display_errors | ||
PHP_INI_DISPLAY_ERRORS= \ | ||
# php.ini override: display_startup_errors | ||
PHP_INI_DISPLAY_STARTUP_ERRORS= \ | ||
# php.ini override: error_log | ||
PHP_INI_ERROR_LOG="/var/log/php7/error.log" \ | ||
# php.ini override: err-r_reporting | ||
PHP_INI_ERROR_REPORTING= \ | ||
# php.ini override: memory_limit | ||
PHP_INI_MEMORY_LIMIT="256M" \ | ||
# php.ini override: max_post | ||
PHP_INI_MAX_POST="64M" \ | ||
# php.ini override: max_upload | ||
PHP_INI_MAX_UPLOAD="64M" \ | ||
# php.ini override: session_max_lifetime | ||
PHP_SESSION_MAX_LIFETIME=86400 \ | ||
BF_PHP_DIR="/etc/php7" \ | ||
# offical php.ini template to download | ||
BF_PHP_ENV="production" \ | ||
# space-separated extensions to install on startup | ||
PHP_EXT= | ||
|
||
COPY ./overlay / | ||
COPY ./7.4/overlay / | ||
BF_PHP_EXT= \ | ||
# PHP package prefix | ||
BF_PHP_PREFIX="php7" | ||
|
||
RUN bf-install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
php7 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,41 @@ | ||
FROM bfren/nginx:nginx1.22-alpine3.16-5.0.16 | ||
#====================================================================================================================== | ||
# STAGE 0: get Nu scripts from the PHP image overlay | ||
#====================================================================================================================== | ||
|
||
FROM alpine AS php | ||
|
||
WORKDIR /tmp | ||
RUN \ | ||
# get the Nu scripts from the PHP image overlay | ||
echo "Cloning Alpine overlay." && \ | ||
apk add git && git clone --branch v2.0.0 https://github.com/bfren/docker-php.git && \ | ||
mkdir /overlay && \ | ||
mv docker-php/overlay/etc /overlay/ | ||
|
||
|
||
#====================================================================================================================== | ||
# STAGE 1: create final image | ||
#====================================================================================================================== | ||
|
||
FROM bfren/nginx:nginx1.22-alpine3.16-6.0.0 as final | ||
COPY --from=php /overlay / | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-php" | ||
|
||
ARG BF_IMAGE | ||
ARG BF_VERSION | ||
|
||
COPY ./overlay / | ||
COPY ./8.0/overlay / | ||
|
||
ENV \ | ||
# PHP config directory | ||
PHP_DIR="/etc/php8" \ | ||
# www.conf override: log_level | ||
PHP_FPM_LOG_LEVEL="notice" \ | ||
# php.ini template to use, or 'custom' if you want to bind your own custom php.ini - | ||
# which will cause the other PHP_INI_* environment variables to be ignored | ||
PHP_INI="production" \ | ||
# php.ini override: display_errors | ||
PHP_INI_DISPLAY_ERRORS= \ | ||
# php.ini override: display_startup_errors | ||
PHP_INI_DISPLAY_STARTUP_ERRORS= \ | ||
# php.ini override: error_log | ||
PHP_INI_ERROR_LOG="/var/log/php8/error.log" \ | ||
# php.ini override: err-r_reporting | ||
PHP_INI_ERROR_REPORTING= \ | ||
# php.ini override: memory_limit | ||
PHP_INI_MEMORY_LIMIT="256M" \ | ||
# php.ini override: max_post | ||
PHP_INI_MAX_POST="64M" \ | ||
# php.ini override: max_upload | ||
PHP_INI_MAX_UPLOAD="64M" \ | ||
# php.ini override: session_max_lifetime | ||
PHP_SESSION_MAX_LIFETIME=86400 \ | ||
BF_PHP_DIR="/etc/php8" \ | ||
# offical php.ini template to download | ||
BF_PHP_ENV="production" \ | ||
# space-separated extensions to install on startup | ||
PHP_EXT= | ||
|
||
COPY ./overlay / | ||
COPY ./8.0/overlay / | ||
BF_PHP_EXT= \ | ||
# PHP package prefix | ||
BF_PHP_PREFIX="php8" | ||
|
||
RUN bf-install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
php8 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,41 @@ | ||
FROM bfren/nginx:nginx1.24-alpine3.18-5.0.16 | ||
#====================================================================================================================== | ||
# STAGE 0: get Nu scripts from the PHP image overlay | ||
#====================================================================================================================== | ||
|
||
FROM alpine AS php | ||
|
||
WORKDIR /tmp | ||
RUN \ | ||
# get the Nu scripts from the PHP image overlay | ||
echo "Cloning Alpine overlay." && \ | ||
apk add git && git clone --branch v2.0.0 https://github.com/bfren/docker-php.git && \ | ||
mkdir /overlay && \ | ||
mv docker-php/overlay/etc /overlay/ | ||
|
||
|
||
#====================================================================================================================== | ||
# STAGE 1: create final image | ||
#====================================================================================================================== | ||
|
||
FROM bfren/nginx:nginx1.24-alpine3.18-6.0.0 as final | ||
COPY --from=php /overlay / | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-php" | ||
|
||
ARG BF_IMAGE | ||
ARG BF_VERSION | ||
|
||
COPY ./overlay / | ||
COPY ./8.1/overlay / | ||
|
||
ENV \ | ||
# PHP config directory | ||
PHP_DIR="/etc/php81" \ | ||
# www.conf override: log_level | ||
PHP_FPM_LOG_LEVEL="notice" \ | ||
# php.ini template to use, or 'custom' if you want to bind your own custom php.ini - | ||
# which will cause the other PHP_INI_* environment variables to be ignored | ||
PHP_INI="production" \ | ||
# php.ini override: display_errors | ||
PHP_INI_DISPLAY_ERRORS= \ | ||
# php.ini override: display_startup_errors | ||
PHP_INI_DISPLAY_STARTUP_ERRORS= \ | ||
# php.ini override: error_log | ||
PHP_INI_ERROR_LOG="/var/log/php81/error.log" \ | ||
# php.ini override: err-r_reporting | ||
PHP_INI_ERROR_REPORTING= \ | ||
# php.ini override: memory_limit | ||
PHP_INI_MEMORY_LIMIT="256M" \ | ||
# php.ini override: max_post | ||
PHP_INI_MAX_POST="64M" \ | ||
# php.ini override: max_upload | ||
PHP_INI_MAX_UPLOAD="64M" \ | ||
# php.ini override: session_max_lifetime | ||
PHP_SESSION_MAX_LIFETIME=86400 \ | ||
BF_PHP_DIR="/etc/php81" \ | ||
# offical php.ini template to download | ||
BF_PHP_ENV="production" \ | ||
# space-separated extensions to install on startup | ||
PHP_EXT= | ||
|
||
COPY ./overlay / | ||
COPY ./8.1/overlay / | ||
BF_PHP_EXT= \ | ||
# PHP package prefix | ||
BF_PHP_PREFIX="php81" | ||
|
||
RUN bf-install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
php81 |
Oops, something went wrong.