Skip to content

Commit

Permalink
feat: revert docker base image to chainguard images
Browse files Browse the repository at this point in the history
  • Loading branch information
tbckr committed Dec 30, 2023
1 parent 73dd415 commit cfe3585
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o sgpt -v ./cmd/sgpt/main.go

FROM gcr.io/distroless/static-debian12:nonroot@sha256:39ae7f0201fee13b777a3e4a5a9326a8889269172c8b4f4289d9f19c831f45f4
FROM cgr.dev/chainguard/static:latest
ENV HOME /home/nonroot
VOLUME /home/nonroot
COPY --from=build /go/src/github.com/tbckr/sgpt/sgpt /sgpt
ENTRYPOINT ["/sgpt"]
2 changes: 2 additions & 0 deletions Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ARG BUILDPLATFORM=linux/amd64
ARG BASE_IMAGE_VERSION=gcr.io/distroless/static-debian12:nonroot@sha256:39ae7f0201fee13b777a3e4a5a9326a8889269172c8b4f4289d9f19c831f45f4
FROM --platform=$BUILDPLATFORM ${BASE_IMAGE_VERSION}
ENV HOME /home/nonroot
VOLUME /home/nonroot
COPY sgpt /sgpt
ENTRYPOINT ["/sgpt"]

0 comments on commit cfe3585

Please sign in to comment.