Skip to content

Commit

Permalink
Add PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
eXistenZNL committed Dec 13, 2024
1 parent ff7d6c0 commit 6f6c841
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
49 changes: 49 additions & 0 deletions 8.4.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
FROM alpine:3.21

LABEL maintainer="docker@stefan-van-essen.nl"

ARG S6_OVERLAY_VERSION=3.1.6.2
ARG BUILDPLATFORM

# Install webserver packages
RUN apk -U upgrade && apk add --no-cache \
curl \
nginx \
php84-fpm \
tzdata \
&& ln -s /usr/sbin/php-fpm84 /usr/sbin/php-fpm \
&& addgroup -S php \
&& adduser -S -G php php \
&& rm -rf /var/cache/apk/* /etc/nginx/http.d/* /etc/php84/conf.d/* /etc/php84/php-fpm.d/*

# Install S6 overlay
RUN wget -P /tmp https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz; \
tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz; \
wget -P /tmp https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-noarch.tar.xz; \
tar -C / -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz; \
wget -P /tmp https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-arch.tar.xz; \
tar -C / -Jxpf /tmp/s6-overlay-symlinks-arch.tar.xz; \
case "${BUILDPLATFORM}" in \
"linux/amd64") \
wget -P /tmp https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz; \
tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz; \
;; \
"linux/arm64") \
wget -P /tmp https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-aarch64.tar.xz; \
tar -C / -Jxpf /tmp/s6-overlay-aarch64.tar.xz; \
;; \
*) \
echo "Cannot build, missing valid build platform." \
exit 1; \
esac; \
rm -rf /tmp/*;

COPY files/general files/php84 /

WORKDIR /www

ENTRYPOINT ["/init"]

EXPOSE 80

HEALTHCHECK --interval=5s --timeout=5s CMD curl -f http://127.0.0.1/php-fpm-ping || exit 1
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ See the table below to see what versions are currently available:
| 8.1 | Alpine Linux 3.18 | [Alpine Linux repo](https://pkgs.alpinelinux.org/packages?name=php81*&branch=v3.18&arch=x86_64) | Version 1 |
| 8.2 | Alpine Linux 3.19 | [Alpine Linux repo](https://pkgs.alpinelinux.org/packages?name=php82*&branch=v3.19&arch=x86_64) | Version 1 |
| 8.3 | Alpine Linux 3.19 | [Alpine Linux repo](https://pkgs.alpinelinux.org/packages?name=php83*&branch=v3.19&arch=x86_64) | Version 3 |
| 8.4 | Alpine Linux 3.21 | [Alpine Linux repo](https://pkgs.alpinelinux.org/packages?name=php84*&branch=v3.21&arch=x86_64) | Version 3 |
| 8.4-edge | Alpine Linux 3.20 | [Alpine Linux repo](https://pkgs.alpinelinux.org/packages?name=php84*&branch=edge&arch=x86_64) | Version 3 |

### Overriding or extending the configuration
Expand Down

0 comments on commit 6f6c841

Please sign in to comment.