File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 1- # We do not use --platform feature to auto fill this ARG because of incompatibility between podman and docker
21ARG TARGETARCH
32FROM docker.io/library/node:18-alpine as web-builder
43
54USER node
65
76ARG BUILDSCRIPT
8- ARG TARGETPLATFORM
9- ARG TARGETARCH=amd64
107WORKDIR /opt/app-root
118
129COPY --chown=node web/package.json web/package.json
@@ -24,7 +21,6 @@ RUN npm run build$BUILDSCRIPT
2421
2522FROM docker.io/library/golang:1.22 as go-builder
2623
27- ARG TARGETPLATFORM
2824ARG TARGETARCH=amd64
2925ARG LDFLAGS
3026WORKDIR /opt/app-root
@@ -38,7 +34,7 @@ COPY pkg/ pkg/
3834
3935RUN CGO_ENABLED=0 GOARCH=$TARGETARCH go build -ldflags "$LDFLAGS" -mod vendor -o plugin-backend cmd/plugin-backend.go
4036
41- FROM --platform=linux/$TARGETARCH registry.access.redhat.com/ubi9/ubi-minimal:9.4
37+ FROM --platform=linux/$TARGETARCH registry.access.redhat.com/ubi9/ubi-minimal:9.4
4238
4339COPY --from=web-builder /opt/app-root/web/dist ./web/dist
4440COPY --from=go-builder /opt/app-root/plugin-backend ./
You can’t perform that action at this time.
0 commit comments