Files
jq/Dockerfile
T

34 lines
713 B
Docker
Raw Normal View History

FROM debian:12-slim AS builder
2015-03-18 01:12:08 +01:00
2019-03-28 18:32:39 +01:00
ENV DEBIAN_FRONTEND=noninteractive \
2019-03-28 18:36:33 +01:00
DEBCONF_NONINTERACTIVE_SEEN=true \
LC_ALL=C.UTF-8 \
LANG=C.UTF-8
2019-03-28 18:32:39 +01:00
RUN apt-get update \
&& apt-get install -y \
build-essential \
autoconf \
libtool \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
2015-03-18 01:12:08 +01:00
COPY . /app
RUN autoreconf -i \
&& ./configure \
--disable-docs \
--with-oniguruma=builtin \
--enable-static \
--enable-all-static \
--prefix=/usr/local \
&& make -j$(nproc) \
2023-07-22 08:56:29 +09:00
&& make check VERBOSE=yes \
&& make install-strip
2015-03-18 01:12:08 +01:00
FROM scratch
2015-03-18 01:12:08 +01:00
COPY --from=builder /app/AUTHORS /app/COPYING /usr/local/bin/jq /
RUN ["/jq", "--version"]
ENTRYPOINT ["/jq"]