Skip to content

Commit

Permalink
Update dockerfile to new go (#266)
Browse files Browse the repository at this point in the history
## Which problem is this PR solving?

- The latest release of honeytail updated to a new version of go that needs a later version of alpine. It also requires a change in the installation command.

## Short description of the changes

- Update alpine to 3.16 (and thereby go 1.18)
- Remove deprecated MAINTAINER command
- Change `go get` to `go install`
  • Loading branch information
kentquirk authored Aug 31, 2022
1 parent d1b531b commit e38665a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# This builds the binary inside an Alpine Linux container, which is small
FROM alpine:3.13
MAINTAINER Ben Hartshorne <ben@honeycomb.io>
FROM alpine:3.16

# Set us up so we can build the binary
ENV GOROOT /usr/lib/go
Expand All @@ -22,7 +21,7 @@ RUN apk add --update \
&& ver=$(git rev-parse --short HEAD) \
&& git clean -f \
&& rm -rf .git \
&& go get -ldflags="-X main.BuildID=${ver}" github.com/honeycombio/honeytail \
&& go install -ldflags="-X main.BuildID=${ver}" github.com/honeycombio/honeytail \
&& apk del git go \
&& rm -rf /var/cache/apk/*

Expand Down

0 comments on commit e38665a

Please sign in to comment.