You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# github.com/gen2brain/go-fitz | /go/pkg/mod/github.com/gen2brain/go-fitz@v1.18.0/fitz.go:8:10: fatal error: mupdf/fitz.h: No such file or directory
#41
Closed
andysteve opened this issue
Dec 31, 2021
· 1 comment
Am new to golang, and I need to generate a thumbnail from pdf when I upload it. am using go-fitz library with docker and golang.
But am getting challenged on building docker image including ImageMagick
Docker set up
FROM golang:alpine AS build
RUN apk --no-cache add gcc g++ make git
WORKDIR /go/src/app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN GOOS=linux go build -tags extlib -ldflags="-s -w" -o ./bin/web-app ./main.go
FROM alpine:3.13
RUN apk --no-cache add ca-certificates
WORKDIR /usr/bin
COPY --from=build /go/src/app/bin /go/bin
EXPOSE 2053
ENTRYPOINT /go/bin/web-app --port 2053
github.com/gen2brain/go-fitz
/go/pkg/mod/github.com/gen2brain/go-fitz@v1.18.0/fitz.go:8:10: fatal error: mupdf/fitz.h: No such file or directory
8 | #include <mupdf/fitz.h>
| ^~~~~~~~~~~~~~
compilation terminated.
Thanks
The text was updated successfully, but these errors were encountered: