Repository navigation
Closed as not planned
Labels
bugSomething isn't working
Description
What happened?
I tried to build a standolone binary:
docker build -t static-app -f static-build.Dockerfile .static-build.Dockerfile:
FROM --platform=linux/amd64 dunglas/frankenphp:static-builder
# Copy your app
WORKDIR /go/src/app/dist/app
COPY . .
RUN composer install --ignore-platform-reqs --no-dev -a
# Build the static binary, be sure to select only the PHP extensions you want
WORKDIR /go/src/app/
RUN EMBED=dist/app/ PHP_EXTENSIONS=ctype,iconv,pdo_sqlite,composer ./build-static.sh
Build Type
Official static build
Worker Mode
Yes
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
no php ony OSRelevant log output
docker build -t static-app -f static-build.Dockerfile .
[+] Building 16.2s (10/10) FINISHED docker:default
=> [internal] load build definition from static-build.Dockerfile 0.0s
=> => transferring dockerfile: 411B 0.0s
=> [internal] load metadata for docker.io/dunglas/frankenphp:static-builder 1.4s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [1/6] FROM docker.io/dunglas/frankenphp:static-builder@sha256:f5a518cdb4edcfb89eaead1f7f10b0a1109a0941154a568ed99f0cd115d2707e 0.0s
=> [internal] load build context 2.4s
=> => transferring context: 386.40MB 2.4s
=> CACHED [2/6] WORKDIR /go/src/app/dist/app 0.0s
=> [3/6] COPY . . 6.1s
=> [4/6] RUN composer install --ignore-platform-reqs --no-dev -a 3.4s
=> [5/6] WORKDIR /go/src/app/ 0.1s
=> ERROR [6/6] RUN EMBED=dist/app/ PHP_EXTENSIONS=ctype,iconv,pdo_sqlite,composer ./build-static.sh 2.7s
------
> [6/6] RUN EMBED=dist/app/ PHP_EXTENSIONS=ctype,iconv,pdo_sqlite,composer ./build-static.sh:
2.440 ./build-static.sh: line 126: md5: not found
------
static-build.Dockerfile:11
--------------------
9 | # Build the static binary, be sure to select only the PHP extensions you want
10 | WORKDIR /go/src/app/
11 | >>> RUN EMBED=dist/app/ PHP_EXTENSIONS=ctype,iconv,pdo_sqlite,composer ./build-static.sh
12 |
--------------------
ERROR: failed to solve: process "/bin/ash -eo pipefail -c EMBED=dist/app/ PHP_EXTENSIONS=ctype,iconv,pdo_sqlite,composer ./build-static.sh" did not complete successfully: exit code: 127Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
dunglas commentedon Mar 1, 2024
This has been fixed in the development version. See #559.
static: build with PHP 8.6 (#2861)