# syntax=docker/dockerfile:1 FROM php-base COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ WORKDIR /app RUN mkdir -p /app/public RUN echo ' /app/public/index.php COPY --from=builder /usr/local/bin/frankenphp /usr/local/bin/frankenphp COPY --from=builder /etc/Caddyfile /etc/Caddyfile COPY --from=php-base /usr/local/include/php/ /usr/local/include/php COPY --from=php-base /usr/local/lib/libphp.* /usr/local/lib COPY --from=php-base /usr/local/lib/php/ /usr/local/lib/php COPY --from=php-base /usr/local/php/ /usr/local/php COPY --from=php-base /usr/local/bin/ /usr/local/bin COPY --from=php-base /usr/src /usr/src RUN sed -i 's/php/frankenphp run/g' /usr/local/bin/docker-php-entrypoint CMD [ "--config", "/etc/Caddyfile" ]