Skip to content

Commit 70e63c1

Browse files
committed
fix podman builds
1 parent 693d236 commit 70e63c1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
# We do not use --platform feature to auto fill this ARG because of incompatibility between podman and docker
21
ARG TARGETARCH
32
FROM docker.io/library/node:18-alpine as web-builder
43

54
USER node
65

76
ARG BUILDSCRIPT
8-
ARG TARGETPLATFORM
9-
ARG TARGETARCH=amd64
107
WORKDIR /opt/app-root
118

129
COPY --chown=node web/package.json web/package.json
@@ -24,7 +21,6 @@ RUN npm run build$BUILDSCRIPT
2421

2522
FROM docker.io/library/golang:1.22 as go-builder
2623

27-
ARG TARGETPLATFORM
2824
ARG TARGETARCH=amd64
2925
ARG LDFLAGS
3026
WORKDIR /opt/app-root
@@ -38,7 +34,7 @@ COPY pkg/ pkg/
3834

3935
RUN 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

4339
COPY --from=web-builder /opt/app-root/web/dist ./web/dist
4440
COPY --from=go-builder /opt/app-root/plugin-backend ./

0 commit comments

Comments
 (0)