Skip to content

Instantly share code, notes, and snippets.

@b4tman
Created November 14, 2018 12:38
Show Gist options
  • Save b4tman/1a93116176c3525f0ce17d8c51f139bf to your computer and use it in GitHub Desktop.
Save b4tman/1a93116176c3525f0ce17d8c51f139bf to your computer and use it in GitHub Desktop.
FROM golang:1.11-alpine
RUN apk add -U --no-cache curl git make g++ && \
RUN curl "https://raw.githubusercontent.com/golang/dep/master/install.sh" | sh
RUN go get -d -v github.com/muesli/beehive
RUN cd ${GOPATH}/src/github.com/muesli/beehive && \
make get-deps && \
make
FROM alpine:3.8
RUN apk add -U --no-cache ca-certificates
WORKDIR /app
COPY --from=0 /go/src/github.com/muesli/beehive/beehive .
ENTRYPOINT ["./beehive"]
CMD ["-bind", "0.0.0.0:8181", "-canonicalurl", "http://localhost:8181"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment