gen2brain / go-fitz

Golang wrapper for the MuPDF Fitz library
GNU Affero General Public License v3.0
369 stars 87 forks source link

How to build docker with this package? #95

Closed Deme94 closed 9 months ago

Deme94 commented 9 months ago

Hello again, I'm having troubles building the dockerfile.

Have you ever tried building a docker with this package? I don't know what I'm missing.

Thank you



ENV CGO_ENABLED=1
RUN apk add build-base
RUN apk add libc-dev

WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download

COPY . .

RUN go build -o ./out/app ./main.go

CMD ["./out/app"]