Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ "7.4", "8.0", "8.1", "8.2", "8.3", "8.4" ]
php: [ "7.4", "8.0", "8.1", "8.2", "8.3", "8.4", "8.5" ]
runs-on: ubuntu-latest
steps:
-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ "7.4", "8.0", "8.1", "8.2", "8.3", "8.4" ]
php: [ "7.4", "8.0", "8.1", "8.2", "8.3", "8.4", "8.5" ]
runs-on: ubuntu-latest
steps:
-
Expand Down
4 changes: 2 additions & 2 deletions 7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /tmp
RUN \
# get the Nu scripts from the PHP image overlay
echo "Cloning Alpine overlay." && \
apk add git && git clone --branch v3.0.1 https://github.com/bfren/docker-php.git && \
apk add git && git clone --branch v3.1.0 https://github.com/bfren/docker-php.git && \
mkdir /overlay && \
mv docker-php/overlay/etc /overlay/

Expand All @@ -17,7 +17,7 @@ RUN \
# STAGE 1: create final image
#======================================================================================================================

FROM quay.io/bfren/nginx:nginx1.20-alpine3.15-7.0.1 AS final
FROM quay.io/bfren/nginx:nginx1.20-alpine3.15-7.1.0 AS final
COPY --from=php /overlay /

LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-php"
Expand Down
4 changes: 2 additions & 2 deletions 8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /tmp
RUN \
# get the Nu scripts from the PHP image overlay
echo "Cloning Alpine overlay." && \
apk add git && git clone --branch v3.0.1 https://github.com/bfren/docker-php.git && \
apk add git && git clone --branch v3.1.0 https://github.com/bfren/docker-php.git && \
mkdir /overlay && \
mv docker-php/overlay/etc /overlay/

Expand All @@ -17,7 +17,7 @@ RUN \
# STAGE 1: create final image
#======================================================================================================================

FROM quay.io/bfren/nginx:nginx1.22-alpine3.16-7.0.1 AS final
FROM quay.io/bfren/nginx:nginx1.22-alpine3.16-7.1.0 AS final
COPY --from=php /overlay /

LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-php"
Expand Down
4 changes: 2 additions & 2 deletions 8.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /tmp
RUN \
# get the Nu scripts from the PHP image overlay
echo "Cloning Alpine overlay." && \
apk add git && git clone --branch v3.0.1 https://github.com/bfren/docker-php.git && \
apk add git && git clone --branch v3.1.0 https://github.com/bfren/docker-php.git && \
mkdir /overlay && \
mv docker-php/overlay/etc /overlay/

Expand All @@ -17,7 +17,7 @@ RUN \
# STAGE 1: create final image
#======================================================================================================================

FROM quay.io/bfren/nginx:nginx1.24-alpine3.19-7.0.1 AS final
FROM quay.io/bfren/nginx:nginx1.24-alpine3.19-7.1.0 AS final
COPY --from=php /overlay /

LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-php"
Expand Down
4 changes: 2 additions & 2 deletions 8.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /tmp
RUN \
# get the Nu scripts from the PHP image overlay
echo "Cloning Alpine overlay." && \
apk add git && git clone --branch v3.0.1 https://github.com/bfren/docker-php.git && \
apk add git && git clone --branch v3.1.0 https://github.com/bfren/docker-php.git && \
mkdir /overlay && \
mv docker-php/overlay/etc /overlay/

Expand All @@ -17,7 +17,7 @@ RUN \
# STAGE 1: create final image
#======================================================================================================================

FROM quay.io/bfren/nginx:nginx1.28-alpine3.22-7.0.1 AS final
FROM quay.io/bfren/nginx:nginx1.28-alpine3.22-7.1.0 AS final
COPY --from=php /overlay /

LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-php"
Expand Down
4 changes: 2 additions & 2 deletions 8.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /tmp
RUN \
# get the Nu scripts from the PHP image overlay
echo "Cloning Alpine overlay." && \
apk add git && git clone --branch v3.0.1 https://github.com/bfren/docker-php.git && \
apk add git && git clone --branch v3.1.0 https://github.com/bfren/docker-php.git && \
mkdir /overlay && \
mv docker-php/overlay/etc /overlay/

Expand All @@ -17,7 +17,7 @@ RUN \
# STAGE 1: create final image
#======================================================================================================================

FROM quay.io/bfren/nginx:nginx1.28-alpine3.22-7.0.1 AS final
FROM quay.io/bfren/nginx:nginx1.28-alpine3.23-7.1.0 AS final
COPY --from=php /overlay /

LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-php"
Expand Down
2 changes: 1 addition & 1 deletion 8.3/NGINX_BASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nginx1.28-alpine3.22
nginx1.28-alpine3.23
2 changes: 1 addition & 1 deletion 8.3/overlay/tmp/PHP_BUILD
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.3.27-r0
8.3.28-r0
2 changes: 1 addition & 1 deletion 8.3/overlay/tmp/PHP_REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.3.27
8.3.28
4 changes: 2 additions & 2 deletions 8.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /tmp
RUN \
# get the Nu scripts from the PHP image overlay
echo "Cloning Alpine overlay." && \
apk add git && git clone --branch v3.0.1 https://github.com/bfren/docker-php.git && \
apk add git && git clone --branch v3.1.0 https://github.com/bfren/docker-php.git && \
mkdir /overlay && \
mv docker-php/overlay/etc /overlay/

Expand All @@ -17,7 +17,7 @@ RUN \
# STAGE 1: create final image
#======================================================================================================================

FROM quay.io/bfren/nginx:nginx1.28-alpine3.22-7.0.1 AS final
FROM quay.io/bfren/nginx:nginx1.28-alpine3.23-7.1.0 AS final
COPY --from=php /overlay /

LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-php"
Expand Down
2 changes: 1 addition & 1 deletion 8.4/NGINX_BASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nginx1.28-alpine3.22
nginx1.28-alpine3.23
2 changes: 1 addition & 1 deletion 8.4/overlay/tmp/PHP_BUILD
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.4.14-r0
8.4.15-r0
2 changes: 1 addition & 1 deletion 8.4/overlay/tmp/PHP_REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.4.14
8.4.15
42 changes: 42 additions & 0 deletions 8.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#======================================================================================================================
# STAGE 0: get Nu scripts from the PHP image overlay
#======================================================================================================================

FROM quay.io/bfren/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 v3.1.0 https://github.com/bfren/docker-php.git && \
mkdir /overlay && \
mv docker-php/overlay/etc /overlay/


#======================================================================================================================
# STAGE 1: create final image
#======================================================================================================================

FROM quay.io/bfren/nginx:nginx1.28-alpine3.23-7.1.0 AS final
COPY --from=php /overlay /

LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-php"

ARG BF_IMAGE
ARG BF_PUBLISHING
ARG BF_VERSION

COPY ./overlay /
COPY ./8.5/overlay /

ENV \
# PHP config directory
BF_PHP_DIR="/etc/php85" \
# offical php.ini template to download
BF_PHP_ENV="production" \
# space-separated extensions to install on startup
BF_PHP_EXT= \
# PHP package prefix
BF_PHP_PREFIX="php85"

RUN bf-install
1 change: 1 addition & 0 deletions 8.5/NGINX_BASE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nginx1.28-alpine3.23
1 change: 1 addition & 0 deletions 8.5/PHP_PREFIX
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
php85
1 change: 1 addition & 0 deletions 8.5/overlay/tmp/PHP_BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8.5.0-r0
1 change: 1 addition & 0 deletions 8.5/overlay/tmp/PHP_REVISION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8.5.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[Docker Repository](https://hub.docker.com/r/bfren/nginx-php) - [bfren ecosystem](https://github.com/bfren/docker)

Nginx plus PHP (7.4, 8.0, 8.1, 8.2 and 8.3) - no SSL support etc, designed to be used behind a proxy server. Minimal PHP packages are installed:
Nginx plus PHP (7.4, 8.0, 8.1, 8.2, 8.3, 8.4 and 8.5) - no SSL support etc, designed to be used behind a proxy server. Minimal PHP packages are installed:

* `php`
* `php-common`
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.0.1
8.1.0
2 changes: 1 addition & 1 deletion VERSION_MINOR
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.0
8.1
6 changes: 3 additions & 3 deletions generate-dockerfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -euo pipefail

docker pull bfren/alpine

BASE_VERSION="7.0.1"
PHP_BRANCH="v3.0.1"
PHP_VERSIONS="7.4 8.0 8.1 8.2 8.3 8.4"
BASE_VERSION="7.1.0"
PHP_BRANCH="v3.1.0"
PHP_VERSIONS="7.4 8.0 8.1 8.2 8.3 8.4 8.5"

for V in ${PHP_VERSIONS} ; do

Expand Down
6 changes: 5 additions & 1 deletion overlay/tmp/install
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ def main [] {
let packages = [
$"($prefix)=($version)"
$"($prefix)-fpm=($version)"
$"($prefix)-opcache=($version)"
$"($prefix)-session=($version)"
]
bf pkg install $packages

# opcache is part of PHP >= 8.5
if not ($version | bf version is_at_least "8.5.0") {
bf pkg install [$"($prefix)-opcache=($version)"]
}

# create symlinks so PHP can be called on the commandline using php and php-fpm
let php = "/usr/bin/php"
let fpm = "/usr/sbin/php-fpm"
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

IMAGE=`cat VERSION`
PHP=${1:-8.4}
PHP=${1:-8.5}

docker buildx build \
--load \
Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

IMAGE=nginx-php
VERSION=`cat VERSION`
PHP=${1:-8.4}
PHP=${1:-8.5}
TAG=${IMAGE}-test

docker buildx build \
Expand Down