SIGN IN SIGN UP
wader / fq UNCLAIMED

jq for binary formats - tool, language and decoders for working with binary and text formats

0 0 1 Go
# bump: docker-golang /FROM golang:([\d.]+)/ docker:golang|^1
FROM golang:1.26.1-bookworm AS base
# expect is used to test cli
RUN \
apt-get update -q && \
apt-get install --no-install-recommends -qy \
expect
2020-06-08 02:29:51 +02:00
# docker build --target dev -t fq-dev - < Dockerfile && docker run --rm -ti -v "$PWD:/$PWD" -w "$PWD" fq-dev
FROM base AS dev
FROM base AS builder
WORKDIR $GOPATH/src/fq
COPY go.mod go.sum ./
RUN go mod download
2021-12-06 17:57:10 +01:00
COPY Makefile *.go ./
2020-06-08 02:29:51 +02:00
COPY pkg pkg
COPY internal internal
COPY format format
2020-06-08 02:29:51 +02:00
RUN make test fq
RUN cp fq /fq
FROM scratch
COPY --from=builder /fq /fq
RUN ["/fq", "--version"]
ENTRYPOINT ["/fq"]