Created
December 1, 2020 16:18
-
-
Save mhart/d04e1ef2a7121b468b819bb93469d5fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1-alpine3.12 AS build-image | |
WORKDIR /app | |
COPY *.go ./ | |
RUN go build main.go | |
FROM alpine:3.12 | |
WORKDIR /app | |
# pdf2cairo is part of the poppler-utils package | |
# ttf-liberation includes common fonts we might need | |
RUN apk add --no-cache poppler-utils ttf-liberation | |
COPY --from=build-image /app/main ./ | |
ENTRYPOINT ["/app/main"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment