Skip to content

Unable to run static build #30

@Skaronator

Description

@Skaronator

I want to try out static build but quickly noticed that they are not working in this repository.

$ git clone [email protected]:dunglas/frankenphp-demo.git
$ cd frankenphp-demo
$ docker build -t static-app -f static-build.Dockerfile .

------

 1 warning found (use docker --debug to expand):
 - FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" (line 1)
static-build.Dockerfile:13
--------------------
  12 |     WORKDIR /go/src/app/
  13 | >>> RUN EMBED=dist/app/ \
  14 | >>>     ./build-static.sh
  15 |
--------------------
ERROR: failed to build: failed to solve: process "/bin/ash -eo pipefail -c EMBED=dist/app/     ./build-static.sh" did not complete successfully: exit code: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions