-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff7d6c0
commit 6f6c841
Showing
2 changed files
with
50 additions
and
0 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,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 |
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