Skip to content

Commit

Permalink
Move Replay & fcgi dependencies from intranet. (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthlingDavey authored Oct 16, 2024
1 parent 689f542 commit b2cfb05
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,19 @@ RUN apk add --update bash \
freetype-dev \
icu-dev \
htop \
mariadb-client
mariadb-client \
fcgi

RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS

RUN docker-php-ext-configure intl && \
docker-php-ext-install -j "$(nproc)" exif gd zip mysqli opcache intl

# Use the mlocati/php-extension-installer to install the relay PHP extension
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extensions relay && \
rm /usr/local/bin/install-php-extensions

# Download, patch and install imagick
# https://github.com/docker-library/wordpress/blob/0c3488c5a6623a4858964ba69950260018201d79/latest/php8.3/fpm/Dockerfile#L47
RUN curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; \
Expand Down Expand Up @@ -86,7 +92,10 @@ ENV TZ=Europe/London
RUN apk add dpkg tzdata && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN printf '[Date]\ndate.timezone="%s"\n' $TZ > /usr/local/etc/php/conf.d/tzone.ini
RUN printf '[Date]\ndate.timezone="%s"\n' $TZ > /usr/local/etc/php/conf.d/tzone.ini

# Create a healthcheck folder, in preperation for the healthcheck script(s).
RUN mkdir -p /usr/local/bin/fpm-health

# Copy the modified entrypoint, to allow init. scripts.
COPY docker-php-entrypoint /usr/local/bin/
Expand Down

0 comments on commit b2cfb05

Please sign in to comment.