-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dockerfiles to fix chainguard image references
- Loading branch information
1 parent
8d41932
commit 709d9cd
Showing
3 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
FROM golang:1.23-alpine3.20 AS zed-builder | ||
# NOTE: we use the chainguard image here rather | ||
# than the golang image because the golang image | ||
# uses musl as its libc, and chainguard no longer provides | ||
# a musl-dynamic container. - 2024-12-02 Tanner Stirrat | ||
FROM cgr.dev/chainguard/go:latest AS zed-builder | ||
WORKDIR /go/src/app | ||
RUN apk update && apk add --no-cache git | ||
COPY . . | ||
RUN go build -v ./cmd/zed/ | ||
|
||
FROM cgr.dev/chainguard/musl-dynamic:latest | ||
FROM cgr.dev/chainguard/glibc-dynamic:latest | ||
COPY --from=zed-builder /go/src/app/zed /usr/local/bin/zed | ||
ENTRYPOINT ["zed"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters