File: Dockerfile

package info (click to toggle)
mtail 3.2.24-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,384 kB
  • sloc: yacc: 647; makefile: 226; sh: 78; lisp: 77; awk: 17
file content (31 lines) | stat: -rw-r--r-- 1,181 bytes parent folder | download
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:alpine AS builder
RUN apk add --update git make
WORKDIR /go/src/github.com/jaqx0r/mtail
COPY . /go/src/github.com/jaqx0r/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="jaqx0r/mtail" \
      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://google.github.io/mtail/" \
      org.opencontainers.image.created=$build_date \
      org.opencontainers.image.url="https://github.com/jaqx0r/mtail"