gen2brain / go-fitz

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

How to build docker with this package? #95

Closed Deme94 closed 1 year ago

Deme94 commented 1 year 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"]