Skip to content

Commit

Permalink
add missing ldconfig call
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Aug 5, 2023
1 parent d505f7b commit 411a9b4
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ RUN rm -Rf /usr/local/include/php/ /usr/local/lib/libphp.* /usr/local/lib/php/ /

RUN apt-get update && \
apt-get -y --no-install-recommends install \
# Required to link the FrankenPHP binary to the PHP binary
libargon2-dev \
libcurl4-openssl-dev \
libonig-dev \
libreadline-dev \
libsodium-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
zlib1g-dev \
# Required to compile PHP
bison \
# Required to link the FrankenPHP binary to the PHP binary
libargon2-dev \
libcurl4-openssl-dev \
libonig-dev \
libreadline-dev \
libsodium-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
zlib1g-dev \
# Required to compile PHP
bison \
&& \
apt-get clean

Expand Down Expand Up @@ -92,7 +92,7 @@ RUN set -eux; \
# https://externals.io/message/118859
--disable-zend-signals \
--enable-zend-max-execution-timers \
# Prevents weird interactions between Go and fibers
# Prevents weird interactions between Go and fibers
--disable-fiber-asm \
; \
make -j "$(nproc)"; \
Expand All @@ -111,6 +111,7 @@ RUN set -eux; \
cd /; \
docker-php-source delete; \
\
ldconfig && \
# smoke test
php --version

Expand Down Expand Up @@ -139,7 +140,9 @@ ENV CGO_LDFLAGS="-lssl -lcrypto -lreadline -largon2 -lcurl -lonig -lz $PHP_LDFLA
RUN cd caddy/frankenphp && \
go build -ldflags "-X 'github.com/caddyserver/caddy/v2.CustomVersion=FrankenPHP $FRANKENPHP_VERSION Caddy'" && \
cp frankenphp /usr/local/bin && \
cp /go/src/app/caddy/frankenphp/Caddyfile /etc/Caddyfile
cp /go/src/app/caddy/frankenphp/Caddyfile /etc/Caddyfile && \
# smoke test
frankenphp version

ENTRYPOINT ["/bin/bash","-c"]

Expand Down

0 comments on commit 411a9b4

Please sign in to comment.