Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Copy watcher shared library for FrankenPHP images #161

Merged
merged 1 commit into from
Nov 13, 2024
Merged
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
13 changes: 9 additions & 4 deletions src/php/with-f8p/f8p-install.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
################################################################################

# Copy files from the official image
COPY --link --from=frankenphp /usr/local/lib/libwatcher* /usr/local/lib/
COPY --link --from=frankenphp /usr/local/bin/frankenphp /usr/local/bin/frankenphp

################################################################################
Expand All @@ -17,14 +18,18 @@ echo 'Install FrankenPHP'

set -e

# install common packages
APK_PACKAGES='libstdc++ mailcap libcap' \
APT_PACKAGES='libstdc++6 mailcap libcap2-bin' \
pkg-add && ldconfig /usr/local/lib

mkdir -p /config/caddy /data/caddy /etc/caddy

if ! has-cmd frankenphp; then
exit 1
fi

if has-cmd setcap; then
setcap cap_net_bind_service=+ep "$(command -v frankenphp)"
fi

setcap cap_net_bind_service=+ep "$(command -v frankenphp)"
ln -nsf "$(command -v frankenphp)" /usr/local/sbin/caddy

EOF