-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use golang image to use go install for easy multi arch support (#1)
- Loading branch information
Showing
2 changed files
with
12 additions
and
12 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea/ |
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,17 +1,16 @@ | ||
FROM alpine:3 | ||
FROM golang:alpine3.19 | ||
|
||
RUN apk add --no-cache \ | ||
curl | ||
git | ||
|
||
RUN mkdir -p /opt/buildevents | ||
RUN git clone \ | ||
--depth 1 \ | ||
--branch "v0.16.0" \ | ||
https://github.com/honeycombio/buildevents /opt/buildevents \ | ||
&& cd /opt/buildevents \ | ||
&& go install github.com/honeycombio/buildevents/ | ||
|
||
WORKDIR /opt/buildevents | ||
|
||
# Install buildevents | ||
RUN curl -L \ | ||
-o buildevents \ | ||
https://github.com/honeycombio/buildevents/releases/download/v0.16.0/buildevents-linux-amd64 \ | ||
&& chmod 755 buildevents | ||
|
||
CMD ["/opt/buildevents/buildevents", "--help"] | ||
RUN apk del \ | ||
git | ||
|
||
ENTRYPOINT ["buildevents"] |