forked from LodestoneHQ/lodestone-processor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
19 lines (15 loc) · 1.2 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM golang
RUN apt-get update && apt-get install -y bash curl git go-dep libmagickwand-6.q16-dev
WORKDIR /go/src/github.com/analogj/lodestone-processor/
CMD /go/src/github.com/analogj/lodestone-processor/build.sh
#GOOS=linux GARCH=amd64 CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags "-X main.goos=linux -X main.goarch=amd64 -extldflags \"-static\"" -o lodestone-document-processor-linux-amd64 ./cmd/document-processor/document-processor.go && \
#GOOS=linux GARCH=amd64 CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags "-X main.goos=linux -X main.goarch=amd64 -extldflags \"-static\"" -o lodestone-thumbnail-processor-linux-amd64 ./cmd/thumbnail-processor/thumbnail-processor.go
#
#
#FROM debian:buster-slim as runtime
#
#RUN apt-get update && apt-get install -y bash curl git go-dep libmagickwand-6.q16-dev libreoffice-common
#COPY --from=builder /go/src/github.com/analogj/lodestone-processor/lodestone-document-processor-linux-amd64 /usr/bin/lodestone-document-processor
#COPY --from=builder /go/src/github.com/analogj/lodestone-processor/lodestone-thumbnail-processor-linux-amd64 /usr/bin/lodestone-thumbnail-processor
#
#RUN chmod +x /usr/bin/lodestone-document-processor /usr/bin/lodestone-thumbnail-processor