File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 15
15
# Build arguments
16
16
ARG SOURCE_CODE=.
17
17
18
- # Use ubi8/nodejs-14 as base image
19
- FROM registry.access.redhat.com/ubi8/go-toolset:1.22 as builder
18
+ FROM registry.access.redhat.com/ubi9/go-toolset:1.22 as builder
20
19
21
20
22
21
## Build args to be used at this step
@@ -37,7 +36,7 @@ COPY ${SOURCE_CODE}/ ./
37
36
38
37
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags netgo -ldflags '-extldflags "-static"' -o /bin/driver ./backend/src/v2/cmd/driver/*.go
39
38
40
- FROM registry.access.redhat.com/ubi8 /ubi-minimal:latest
39
+ FROM registry.access.redhat.com/ubi9 /ubi-minimal:9.5
41
40
42
41
WORKDIR /bin
43
42
Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ ARG SOURCE_CODE=.
17
17
ARG CI_CONTAINER_VERSION="unknown"
18
18
19
19
20
- # Use ubi8/nodejs-14 as base image
21
- FROM registry.access.redhat.com/ubi8/go-toolset:1.22 as builder
20
+ FROM registry.access.redhat.com/ubi9/go-toolset:1.22 as builder
22
21
23
22
24
23
## Build args to be used at this step
@@ -38,13 +37,15 @@ RUN GO111MODULE=on go mod download
38
37
COPY ${SOURCE_CODE}/ ./
39
38
40
39
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags netgo -ldflags '-extldflags "-static"' -o /bin/launcher-v2 ./backend/src/v2/cmd/launcher-v2/*.go
40
+ RUN GO111MODULE=on CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GOEXPERIMENT=strictfipsruntime go build -tags 'netgo strictfipsruntime' -o /bin/launcher-v2-fips ./backend/src/v2/cmd/launcher-v2/*.go
41
41
42
- FROM registry.access.redhat.com/ubi8 /ubi-minimal:latest
42
+ FROM registry.access.redhat.com/ubi9 /ubi-minimal:9.5
43
43
44
44
WORKDIR /bin
45
45
46
46
COPY --from=builder /bin/launcher-v2 /bin/launcher-v2
47
- RUN chmod +x /bin/launcher-v2
47
+ COPY --from=builder /bin/launcher-v2-fips /bin/launcher-v2-fips
48
+ RUN chmod +x /bin/launcher-v2 && chmod +x /bin/launcher-v2-fips
48
49
49
50
ENTRYPOINT ["/bin/launcher-v2"]
50
51
You can’t perform that action at this time.
0 commit comments