Closed ramonmalcolm10 closed 3 months ago
FrankenPHP does extend official PHP images, and contains the scripts used by this script: https://github.com/mlocati/docker-php-extension-installer/blob/6d18123abeae197fea75a8b26d7cf597c5f35543/install-php-extensions#L19
It looks like you use a custom Dockerfile, can you copy it?
FrankenPHP does extend official PHP images, and contains the scripts used by this script: https://github.com/mlocati/docker-php-extension-installer/blob/6d18123abeae197fea75a8b26d7cf597c5f35543/install-php-extensions#L19
It looks like you use a custom Dockerfile, can you copy it?
ARG PHP_VERSION=8.3
ARG FRANKENPHP_VERSION=latest
FROM composer:latest as vendor
COPY ./composer.json /app/
COPY ./composer.lock /app/
RUN composer install --no-dev --no-autoloader --no-scripts --ignore-platform-reqs
COPY . /app
RUN composer install --no-dev --optimize-autoloader --ignore-platform-reqs
FROM oven/bun as frontend
WORKDIR /app
COPY package.json bun.lockb ./
RUN bun install
COPY vite.config.js ./
COPY resources/ ./resources/
COPY public/ ./public/
RUN bun run build
FROM dunglas/frankenphp:${FRANKENPHP_VERSION}-php${PHP_VERSION}
RUN install-php-extensions \
pcntl \
pdo_pgsql
COPY --chown=www-data --from=vendor /app/ /app
COPY --chown=www-data --from=frontend /app/public/ /app/public/
COPY --chown=www-data --from=frontend /app/bootstrap/ssr/ /app/bootstrap/ssr/
COPY --chown=www-data --from=frontend /app/node_modules/ /app/node_modules/
ENTRYPOINT ["php", "artisan", "octane:frankenphp"]
The above Dockerfile builds for me, at least on Ubuntu amd64
and Docker 26.1.2
. @ramonmalcolm10 what docker version are you using?
The above Dockerfile builds for me, at least on Ubuntu
amd64
and Docker26.1.2
. @ramonmalcolm10 what docker version are you using?
Was using Docker 26.1.2
on Debian
Issue was resolved for me, I was using docker:19-dind instead of the latest version.
What happened?
Not able to install any php extensions in Gitab ci/cd pipeline, however it work locally on my Macbook.
Build Type
Docker (Debian Bookworm)
Worker Mode
No
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output