Dockerised version of Google's mtail
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123456789101112131415 |
- FROM golang:alpine AS build
-
- WORKDIR /usr/local/go/src/github.com/google/mtail
-
- RUN apk add build-base git \
- && git clone https://github.com/google/mtail . \
- && make install_deps \
- && CGO_ENABLED=0 GOOS=linux go build -o /usr/bin/mtail -a -ldflags '-extldflags "-static"' ./cmd/mtail
-
- FROM scratch
-
- COPY --from=build /usr/bin/mtail /mtail
-
- EXPOSE 3903
- ENTRYPOINT ["/mtail", "-logtostderr"]
|