-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't hardcode linux/amd64 or GO111MODULE in Dockerfile
- Loading branch information
1 parent
ee9a341
commit 21fa12a
Showing
1 changed file
with
3 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
FROM public.ecr.aws/docker/library/golang:1.23.3@sha256:73f06be4578c9987ce560087e2e2ea6485fb605e3910542cadd8fa09fc5f3e31 as builder | ||
FROM public.ecr.aws/docker/library/golang:1.23.3@sha256:73f06be4578c9987ce560087e2e2ea6485fb605e3910542cadd8fa09fc5f3e31 AS builder | ||
WORKDIR /go/src/github.com/buildkite/buildkite-agent-metrics/ | ||
COPY . . | ||
RUN GO111MODULE=on GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o buildkite-agent-metrics . | ||
RUN CGO_ENABLED=0 go build -o buildkite-agent-metrics . | ||
|
||
FROM public.ecr.aws/docker/library/alpine:3.20.3@sha256:1e42bbe2508154c9126d48c2b8a75420c3544343bf86fd041fb7527e017a4b4a | ||
RUN apk update && apk add curl ca-certificates | ||
RUN apk update && apk add --no-cache curl ca-certificates | ||
COPY --from=builder /go/src/github.com/buildkite/buildkite-agent-metrics/buildkite-agent-metrics . | ||
EXPOSE 8080 8125 | ||
ENTRYPOINT ["./buildkite-agent-metrics"] |