Skip to content

Commit c1aa931

Browse files
lilyLuLiupraveenkumar
authored andcommitted
[QE] dockerfile build for konflux
1 parent 5e66d1b commit c1aa931

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ $(HOST_BUILD_DIR)/crc-embedder: $(SOURCES)
110110
go build --tags="build" -ldflags="$(LDFLAGS)" -o $(HOST_BUILD_DIR)/crc-embedder $(GO_EXTRA_BUILDFLAGS) ./cmd/crc-embedder
111111

112112
.PHONY: cross ## Cross compiles all binaries
113-
cross: $(BUILD_DIR)/macos-arm64/crc $(BUILD_DIR)/macos-amd64/crc $(BUILD_DIR)/linux-amd64/crc $(BUILD_DIR)/windows-amd64/crc.exe
113+
cross: $(BUILD_DIR)/macos-arm64/crc $(BUILD_DIR)/macos-amd64/crc $(BUILD_DIR)/linux-amd64/crc $(BUILD_DIR)/linux-arm64/crc $(BUILD_DIR)/windows-amd64/crc.exe
114114

115115
.PHONY: containerized ## Cross compile from container
116116
containerized: clean

images/build/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.23-openshift-4.19
1+
FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.23-openshift-4.19 AS builder
22
MAINTAINER CRC <[email protected]>
33

4-
WORKDIR $APP_ROOT/src
4+
WORKDIR /opt/src
55
COPY . .
6+
RUN make cross
7+
8+
FROM registry.access.redhat.com/ubi9/ubi
9+
COPY --from=builder /opt/src/out/ /opt/

0 commit comments

Comments
 (0)