forked from google/mtail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (27 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM golang:alpine AS builder
RUN apk add --update git make
WORKDIR /go/src/github.com/google/mtail
COPY . /go/src/github.com/google/mtail
RUN make depclean && make install_deps && PREFIX=/go make STATIC=y -B install
FROM scratch
COPY --from=builder /go/bin/mtail /usr/bin/mtail
ENTRYPOINT ["/usr/bin/mtail"]
EXPOSE 3903
WORKDIR /tmp
ARG version=0.0.0-local
ARG build_date=unknown
ARG commit_hash=unknown
ARG vcs_url=unknown
ARG vcs_branch=unknown
LABEL org.opencontainers.image.ref.name="google/mtail" \
org.opencontainers.image.vendor="Google" \
org.opencontainers.image.title="mtail" \
org.opencontainers.image.description="extract internal monitoring data from application logs for collection in a timeseries database" \
org.opencontainers.image.authors="Jamie Wilkinson (@jaqx0r)" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.version=$version \
org.opencontainers.image.revision=$commit_hash \
org.opencontainers.image.source=$vcs_url \
org.opencontainers.image.documentation="https://github.com/google/mtail/tree/main/docs" \
org.opencontainers.image.created=$build_date \
org.opencontainers.image.url="https://github.com/google/mtail"