Skip to content

Commit

Permalink
[5.x] Copy watcher shared library for FrankenPHP images (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinsenter authored Nov 13, 2024
1 parent aa55da5 commit e59912a
Showing 1 changed file with 9 additions and 4 deletions.
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

0 comments on commit e59912a

Please sign in to comment.