forked from IzakMarais/reporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (24 loc) · 893 Bytes
/
Dockerfile
File metadata and controls
26 lines (24 loc) · 893 Bytes
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
# build
FROM golang:1.8-stretch AS build
WORKDIR /go/src/${owner:-github.com/IzakMarais}/reporter
RUN apt-get update && apt-get -y install make git
ADD . .
RUN make build
# create image
FROM debian:stretch
COPY util/texlive.profile /
RUN PACKAGES="wget libswitch-perl" \
&& apt-get update \
&& apt-get install -y -qq $PACKAGES --no-install-recommends \
&& apt-get install -y ca-certificates --no-install-recommends \
&& wget -qO- http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz |tar xz \
&& cd install-tl-* \
&& ./install-tl -profile /texlive.profile \
# Cleanup
&& rm -rf install-tl-* \
&& apt-get remove --purge -qq $PACKAGES \
&& apt-get autoremove --purge -qq \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir /var/tex
COPY --from=build /go/bin/grafana-reporter /usr/local/bin
ENTRYPOINT [ "/usr/local/bin/grafana-reporter" ]