Skip to content

Commit b6dd8b8

Browse files
authored
container now based on ubi10 instead of alpine (#16)
1 parent 7fc4273 commit b6dd8b8

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎Containerfile‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
ARG GO_VERSION=1.24-alpine
2-
ARG ALPINE_VERSION=latest
1+
ARG GO_VERSION=1.24
32
ARG GOARCH=amd64
43

54
# Build stage
6-
FROM docker.io/library/golang:${GO_VERSION} AS builder
5+
FROM registry.access.redhat.com/ubi10/go-toolset:${GO_VERSION} AS builder
76

87
WORKDIR /build
98

@@ -14,9 +13,9 @@ COPY src/ .
1413
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${GOARCH} go build -a -installsuffix cgo -o patternizer .
1514

1615
# Runtime stage
17-
FROM docker.io/library/alpine:${ALPINE_VERSION}
16+
FROM registry.access.redhat.com/ubi10/ubi-minimal:10.0
1817

19-
RUN apk --no-cache add git
18+
RUN microdnf --disableplugin=subscription-manager install -y git
2019

2120
COPY --from=builder /build/patternizer /usr/local/bin/patternizer
2221

‎Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ docs: ## Generate Go documentation
133133
check: lint-fmt lint-vet build test-unit ## Quick check (format, vet, build, unit tests)
134134

135135
.PHONY: all
136-
all: clean deps lint build test local-container-build ## Run everything
136+
all: clean deps lint build test podman-build ## Run everything
137137

138138
##@ Conatiner-related tasks
139139
.PHONY: manifest
@@ -149,7 +149,7 @@ amd64: manifest podman-build-amd64 ## Build the container on amd64
149149
arm64: manifest podman-build-arm64 ## Build the container on arm64
150150

151151
.PHONY: podman-build
152-
podman-build: podman-build-amd64 podman-build-arm64 ## Build both amd64 and arm64
152+
podman-build: manifest podman-build-amd64 podman-build-arm64 ## Build both amd64 and arm64
153153

154154
.PHONY: podman-build-amd64
155155
podman-build-amd64: ## build the container in amd64

0 commit comments

Comments
 (0)