dunglas / frankenphp

🧟 The modern PHP app server

Home Page:https://frankenphp.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel composer fails on build a Standalone Binary

bashman opened this issue · comments

What happened?

I am following this doc:
https://frankenphp.dev/docs/laravel/#laravel-apps-as-standalone-binaries
Step 1. AlI fine, but composer fails on:
image

Some guidance for fix this issue?.
Php(8.3)-com/xml is installed in my system. Laravel 10.x Ubuntu 22.04

Build Type

Standalone binary

Worker Mode

Yes

Operating System

GNU/Linux

CPU Architecture

x86_64

PHP configuration

dom
DOM/XML	enabled
DOM/XML API Version	20031129
libxml Version	2.12.5
HTML Support	enabled
XPath Support	enabled
XPointer Support	enabled
Schema Support	enabled
RelaxNG Support	enabled

Relevant log output

(base) ➜  api git:(master) ✗ docker build -t static-laravel-app -f static-build.Dockerfile .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon  102.3MB
Step 1/9 : FROM --platform=linux/amd64 dunglas/frankenphp:static-builder
 ---> 11e7a98160c7
Step 2/9 : WORKDIR /go/src/app/dist/app
 ---> Using cache
 ---> 676084ec258f
Step 3/9 : COPY . .
 ---> 74033c5fbd49
Step 4/9 : RUN rm -Rf tests/
 ---> Running in 8e1f09be30ea
Removing intermediate container 8e1f09be30ea
 ---> 987e36d340ce
Step 5/9 : RUN cp .env.example .env
 ---> Running in 96b4200ef2af
Removing intermediate container 96b4200ef2af
 ---> e604ff294251
Step 6/9 : RUN sed -i'' -e 's/^APP_ENV=.*/APP_ENV=production/' -e 's/^APP_DEBUG=.*/APP_DEBUG=false/' .env
 ---> Running in e61b38426d50
Removing intermediate container e61b38426d50
 ---> eb0c3abddf0a
Step 7/9 : RUN composer install --ignore-platform-reqs --no-dev -a
 ---> Running in 86f5ea23188c
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 0 installs, 0 updates, 40 removals