17 lines
324 B
Docker
17 lines
324 B
Docker
FROM docker.io/library/alpine:3.18.0 AS build
|
|
|
|
ARG JQ_VERSION
|
|
|
|
RUN set -ex && \
|
|
apk update && \
|
|
apk upgrade && \
|
|
apk add jq
|
|
|
|
# NOTE: Upstream versioning breaks
|
|
# RUN [[ ${JQ_VERSION} == "" ]]; apk add jq
|
|
# RUN [[ ${JQ_VERSION} != "" ]]; apk add jq=${JQ_VERSION}
|
|
|
|
WORKDIR /workspace
|
|
|
|
ENTRYPOINT [ "/usr/bin/jq" ]
|