Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Slim version of FrankenPHP Docker image? #151

@siketyan

Description

@siketyan

I started using FrankenPHP recently and love this product.
But the Docker image of FrankenPHP is a little large to deploy a web app, so it would be great if there are much slim version of the image, without build dependencies and other unnecessary files.

By releasing the slim image with the same PHP version as the normal version, we will be able to copy the built extensions to the slim image:

FROM dunglas/frankenphp:sha-xxxxxxx AS builder

RUN install-php-extensions opcache pdo_mysql memcached

# ---

FROM dunglas/frankenphp:slim-sha-xxxxxxx AS app

COPY --from=cli /usr/local/lib/php/extensions /usr/local/lib/php/extensions
COPY --from=cli /usr/local/etc/php/conf.d/*.ini /usr/local/etc/php/conf.d/

EXPOSE 80
EXPOSE 443

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions