You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@HolgerDoerner I'm running in to this as well trying to build on a m3 mac. Is there a way around it for now un til this is merged? Trying to get my buiild process done.
Hi sorry to necro this issue, I am having this issue in my Dockerfile.
Could I be missing something?
#15 [builder 6/6] RUN EMBED=dist/app/ ./build-static.sh#15 0.245 ./build-static.sh: line 126: md5: not found#15 ERROR: process "/bin/ash -eo pipefail -c EMBED=dist/app/ ./build-static.sh" did not complete successfully: exit code: 127
------
> [builder 6/6] RUN EMBED=dist/app/ ./build-static.sh:
0.245 ./build-static.sh: line 126: md5: not found
------
Dockerfile:11
--------------------
10 | WORKDIR /go/src/app/
11 | >>> RUN EMBED=dist/app/ \
12 | >>> ./build-static.sh
13 |
--------------------
FROM --platform=linux/amd64 dunglas/frankenphp:static-builder-1.1 as builder
# Copy your appWORKDIR /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 wantWORKDIR /go/src/app/
RUN EMBED=dist/app/ \
./build-static.sh
FROM alpine:latest
WORKDIR /app
COPY --from=builder /go/src/app/dist/frankenphp-linux-x86_64 exampleapp
EXPOSE 80
CMD ["./exampleapp", "php-server"]
As a work around, can you try alias md5=md5sum before running the script in the container. That should (theoretically) allow it to at least build until the mystery is resolved.
@marsderp The image dunglas/frankenphp:static-builder-1.1 does not have the updated build-static.sh script, that's why the error still pops up. @dunglas any idea why?
$ docker run dunglas/frankenphp:static-builder-1.1 head -n15 build-static.sh
#!/bin/shset -o errexit
if!type"git"> /dev/null;thenecho"The \"git\" command must be installed."exit 1
fi
arch="$(uname -m)"
os="$(uname -s | tr '[:upper:]''[:lower:]')"if [ "${os}"="darwin" ];then
os="mac"fi
As a work around, can you try alias md5=md5sum before running the script in the container. That should (theoretically) allow it to at least build until the mystery is resolved.
That will not work because md5 is run with -c, which md5sum doesn't know. A more proper workaround for this case was posted earlier: #559 (comment)
Activity
dunglas commentedon Feb 6, 2024
Good catch, that's a BSD/Mac command. Don't hesitate to open a PR. I'll do it ASAP otherwise.
HolgerDoerner commentedon Feb 7, 2024
Hi Kevin, I opened a PR to address this issue.
[-]Building static binary broken[/-][+]Building static binary broken on Linux[/+]dunglas commentedon Feb 7, 2024
Thank you Holger!
alexhackney commentedon Feb 9, 2024
@HolgerDoerner I'm running in to this as well trying to build on a m3 mac. Is there a way around it for now un til this is merged? Trying to get my buiild process done.
alexhackney commentedon Feb 9, 2024
Actually this seems to work ok
HolgerDoerner commentedon Feb 10, 2024
@alexhackney This would still leave the build script broken when run on Your local machine, this will ONLY work in inside of the Docker Container.
dunglas commentedon Feb 10, 2024
Fixed by #562, thanks to Holger!
marsderp commentedon Feb 25, 2024
Hi sorry to necro this issue, I am having this issue in my Dockerfile.
Could I be missing something?
withinboredom commentedon Feb 25, 2024
Looks like you are somehow hitting this line? https://github.com/dunglas/frankenphp/pull/562/files#diff-548dba7efda4c2f29f4eeb946db1da090e10308817056d55077d71146f8ad0ebR15
Can you test that?
juancamunoz commentedon Feb 25, 2024
Same issue here 😞
@withinboredom looks like the image is not updated with this changes. It's trying to do a md5 instead of md5sum
withinboredom commentedon Feb 25, 2024
It looks like an image update was pushed two days ago, is that the same image you are seeing an issue with?
marsderp commentedon Feb 25, 2024
Getting the same error building locally from my WSL2 and running it on Github actions.
However when I run the following commands they seem to be returning the correct responses.
Also note that
frankenphp:static-builder-1.1does have the updated script.withinboredom commentedon Feb 25, 2024
That's a mystery...
As a work around, can you try
alias md5=md5sumbefore running the script in the container. That should (theoretically) allow it to at least build until the mystery is resolved.HolgerDoerner commentedon Feb 25, 2024
@marsderp The image
dunglas/frankenphp:static-builder-1.1does not have the updatedbuild-static.shscript, that's why the error still pops up. @dunglas any idea why?@withinboredom
That will not work because
md5is run with-c, whichmd5sumdoesn't know. A more proper workaround for this case was posted earlier: #559 (comment)dunglas commentedon Feb 26, 2024
That's just because we need to create a new tag, the patch is currently only available in
main: b60fc5c