Closed BretFisher closed 1 year ago
Docker image tag(s) pushed:
ghcr.io/dockersamples/example-voting-app-worker:pr-274
dockersamples/examplevotingapp_worker:pr-274
Labels added to images:
org.opencontainers.image.title=example-voting-app
org.opencontainers.image.description=Example distributed app composed of multiple containers for Docker, Compose, Swarm, and Kubernetes
org.opencontainers.image.url=https://github.com/dockersamples/example-voting-app
org.opencontainers.image.source=https://github.com/dockersamples/example-voting-app
org.opencontainers.image.version=pr-274
org.opencontainers.image.created=2022-12-17T02:58:45.006Z
org.opencontainers.image.revision=44666086f4ba14ef0824579fc5126bb1b937bd4a
org.opencontainers.image.licenses=Apache-2.0
when i try to build image an error message appear :
Sending build context to Docker daemon 10.24kB Step 1/13 : FROM --platform=${BUILDPLATFORM} mcr.microsoft.com/dotnet/sdk:7.0 as build failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument
@Kraiemy try to run this docker buildx build . -t worker
@fedihamdi thanks! it's work now
ADD failed: file not found in build context or excluded by .dockerignore: stat src/Worker: file does not exist
on worker dir pom.xml and src file not available
Various platforms report different TARGETPLATFORM to Docker. Previously, builds might fail on an arm64 machine if it reported
linux/arm64/v8
to BuildKit. This fixes that.