Skip to content

Commit 82813e9

Browse files
committed
Upgrade golang and base image to resolve CVEs
1 parent 24fec14 commit 82813e9

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

chaoscenter/subscriber/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# BUILD STAGE
2-
FROM golang:1.24 AS builder
2+
FROM golang:1.26 AS builder
33

44
LABEL maintainer="LitmusChaos"
55

@@ -17,12 +17,14 @@ RUN CGO_ENABLED=0 go build -o /output/subscriber -v
1717

1818
# Packaging stage
1919
# Use RedHat UBI minimal image as base
20-
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.6
20+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
2121

2222
LABEL maintainer="LitmusChaos"
2323

2424
ENV APP_DIR="/litmus"
2525

26+
RUN dnf update -y && dnf clean all
27+
2628
COPY --from=builder /output/subscriber $APP_DIR/
2729
RUN chown 65534:0 $APP_DIR/subscriber && chmod 755 $APP_DIR/subscriber
2830

chaoscenter/subscriber/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module subscriber
22

3-
go 1.24.0
3+
go 1.26.0
44

55
require (
66
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24

0 commit comments

Comments
 (0)