You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
874 B

FROM golang:1.14.12-alpine3.12 AS libjq
RUN apk --no-cache add curl ca-certificates alpine-sdk && \
cd /tmp ; curl -L -fsS | tar -xz && \
cd jq-1.5 && \
./configure --disable-maintainer-mode --prefix=/usr && \
make install-libLTLIBRARIES install-includeHEADERS
FROM libjq AS builder
RUN update-ca-certificates
COPY go.mod /go/src/
COPY cmd/ /go/src/
COPY internal/ /go/src/
COPY Makefile /go/src/
RUN cd /go/src/; make deps && make dist
FROM alpine:3.12
COPY --from=builder /go/src/ /
COPY --from=builder /usr/lib/libjq.* /usr/lib/