From 7a274ce525ea1350d4c32d5cdadb9ebf08e24cb3 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 6 Jul 2019 18:44:56 +0200 Subject: [PATCH] Update Alpine, lower image size Signed-off-by: Knut Ahlers --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f942142..d5778bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,10 +4,11 @@ COPY . /go/src/github.com/Luzifer/tex-api WORKDIR /go/src/github.com/Luzifer/tex-api RUN set -ex \ - && apk add --update git \ + && apk add --no-cache \ + git \ && go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)" -FROM alpine:3.8 +FROM alpine:3.10 LABEL maintainer "Knut Ahlers " @@ -17,10 +18,11 @@ RUN set -ex \ && apk --no-cache add \ bash \ ca-certificates \ - texlive-full + texlive-xetex \ + texmf-dist-most COPY --from=builder /go/bin/tex-api /usr/local/bin/ -COPY --from=builder /go/src/github.com/Luzifer/tex-api/tex-build.sh /usr/local/bin/ +COPY tex-build.sh /usr/local/bin/ EXPOSE 3000 VOLUME ["/storage"]