Skip to content

Commit

Permalink
Merge pull request #117 from petracihalova/base-image-tag
Browse files Browse the repository at this point in the history
[RHCLOUD-37582] specify the base image version in the dockerfile
  • Loading branch information
petracihalova authored Jan 30, 2025
2 parents f51ff91 + 1e39afd commit 44b7be8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .tekton/uhc-auth-proxy-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ spec:
# set the working directory to value from previous step
workingDir: /var/workdir/source
# Use image that suites your use case
image: registry.access.redhat.com/ubi8/go-toolset:latest
image: registry.access.redhat.com/ubi8/go-toolset:1.22.9-1.1736925145
securityContext:
# If the task step needs write access to the volume, set the runAsUser to 0 (root).
runAsUser: 0
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
############################
# STEP 1 build executable binary
############################
FROM registry.access.redhat.com/ubi8/go-toolset:latest AS builder
FROM registry.access.redhat.com/ubi8/go-toolset:1.22.9-1.1736925145 AS builder
WORKDIR $GOPATH/src/mypackage/myapp/
COPY . .
# Fetch dependencies.
Expand All @@ -14,7 +14,7 @@ RUN CGO_ENABLED=0 go build -o /go/bin/uhc-auth-proxy
############################
# STEP 2 build a small image
############################
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.10-1179
# Copy our static executable.
COPY --from=builder /go/bin/uhc-auth-proxy /go/bin/uhc-auth-proxy
# Default port
Expand Down

0 comments on commit 44b7be8

Please sign in to comment.