forked from google/mtail
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (25 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
31 lines (25 loc) · 1.02 KB
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
FROM golang:1.10.1-alpine3.7 AS builder
RUN apk add --update git make
WORKDIR /go/src/github.com/google/mtail
COPY . /go/src/github.com/google/mtail
RUN make install_deps && make install
FROM alpine:3.7
ARG version=0.0.0-local
ARG build_date=unknown
ARG commit_hash=unknown
ARG vcs_url=unknown
ARG vcs_branch=unknown
EXPOSE 3903
ENTRYPOINT ["/usr/bin/mtail"]
LABEL org.label-schema.vendor='Google' \
org.label-schema.name='mtail' \
org.label-schema.description='extract whitebox monitoring data from application logs for collection in a timeseries database' \
org.label-schema.usage='https://github.com/google/mtail/blob/master/docs/Programming-Guide.md' \
org.label-schema.url='https://github.com/google/mtail' \
org.label-schema.vcs-url=$vcs_url \
org.label-schema.vcs-branch=$vcs_branch \
org.label-schema.vcs-ref=$commit_hash \
org.label-schema.version=$version \
org.label-schema.schema-version='1.0' \
org.label-schema.build-date=$build_date
COPY --from=builder /go/bin/mtail /usr/bin/mtail