Files
jq/Dockerfile
T

43 lines
1.0 KiB
Docker
Raw Normal View History

2015-07-06 18:55:44 -07:00
FROM debian:8
2015-03-18 01:12:08 +01:00
COPY . /app
2015-07-06 18:55:44 -07:00
# get dependencies, build, and remove anything we don't need for running jq.
# valgrind seems to have trouble with pthreads TLS so it's off.
2015-03-18 01:12:08 +01:00
2015-07-06 18:55:44 -07:00
RUN apt-get update && \
apt-get install -y \
build-essential \
2015-09-05 11:54:56 -07:00
autoconf \
libtool \
git \
bison \
flex \
ruby \
wget \
ruby-dev && \
2017-02-23 00:33:08 -06:00
git submodule init && \
git submodule update && \
2015-07-06 18:55:44 -07:00
gem install bundler && \
(cd /app/docs && bundle install) && \
(cd /app && \
autoreconf -i && \
2017-02-23 00:33:08 -06:00
./configure --with-oniguruma=builtin --disable-valgrind --enable-all-static --prefix=/usr/local && \
2015-09-05 11:54:56 -07:00
make -j8 && \
make check && \
make install && \
make distclean ) && \
2015-07-06 18:55:44 -07:00
apt-get purge -y \
build-essential \
2015-09-05 11:54:56 -07:00
autoconf \
libtool \
bison \
git \
flex \
ruby \
ruby-dev && \
2015-07-06 18:55:44 -07:00
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* /var/lib/gems
ENTRYPOINT ["/usr/local/bin/jq"]
CMD []