multi-architecture-dockerfile-updates #228
Reference in New Issue
Block a user
Delete Branch "multi-architecture-dockerfile-updates"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add ARG directives for TARGETOS and TARGETARCH to enable multi-architecture support.
Modify the build command to use the specified target OS and architecture for more flexible and portable builds.
Ensure compatibility with different deployment environments
@@ -15,3 +18,3 @@RUN go tool cover -func=coverage.txtRUN rm coverage.txt.tmpRUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -mod=readonly -o release/default-request-adder -ldflags '-w -s'RUN iGOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -mod=readonly -o release/default-request-adder -ldflags '-w -s'The initial
ilooks like a typo?1112550f30to9a089c8af7