Skip to content

Commit

Permalink
pin docker images (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
phyrog authored Apr 2, 2024
1 parent 83dbe5e commit a7642a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.22 as builder
FROM golang:1.22@sha256:0b55ab82ac2a54a6f8f85ec8b943b9e470c39e32c109b766bbc1b801f3fa8d3b as builder
ARG TARGETOS
ARG TARGETARCH

Expand All @@ -24,7 +24,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
FROM gcr.io/distroless/static:nonroot@sha256:6732c3975d97fac664a5ed15a81a5915e023a7b5a7b58195e733c60b8dc7e684
WORKDIR /
COPY --from=builder /workspace/bin/manager .
USER 65532:65532
Expand Down
2 changes: 1 addition & 1 deletion images/installer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21 as builder
FROM golang:1.21@sha256:856073656d1a517517792e6cdd2f7a5ef080d3ca2dff33e518c8412f140fdd2d as builder

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion tilt.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine
FROM alpine@sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b
WORKDIR /
COPY ./bin/manager /manager

Expand Down

0 comments on commit a7642a9

Please sign in to comment.