Skip to content

Commit

Permalink
Use golang image to use go install for easy multi arch support (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
caflamand authored Mar 25, 2024
1 parent 8fa9690 commit a949bc7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
23 changes: 11 additions & 12 deletions Dockerfile
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"]

0 comments on commit a949bc7

Please sign in to comment.