2019-03-28 20:05:42 +01:00
|
|
|
FROM debian:9
|
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
|
|
|
|
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.
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y \
|
|
|
|
build-essential \
|
2015-09-05 11:54:56 -07:00
|
|
|
autoconf \
|
|
|
|
libtool \
|
|
|
|
git \
|
|
|
|
bison \
|
|
|
|
flex \
|
2019-02-20 21:28:10 -05:00
|
|
|
python3 \
|
2019-03-28 18:49:35 +01:00
|
|
|
python3-pip \
|
2019-02-20 21:28:10 -05:00
|
|
|
wget && \
|
|
|
|
pip3 install pipenv && \
|
|
|
|
(cd /app/docs && pipenv sync) && \
|
2015-07-06 18:55:44 -07:00
|
|
|
(cd /app && \
|
2019-03-28 21:45:29 +01:00
|
|
|
git submodule init && \
|
|
|
|
git submodule update && \
|
2015-07-06 18:55:44 -07:00
|
|
|
autoreconf -i && \
|
2017-02-23 22:01:43 -06:00
|
|
|
./configure --disable-valgrind --enable-all-static --prefix=/usr/local && \
|
2015-09-05 11:54:56 -07:00
|
|
|
make -j8 && \
|
|
|
|
make check && \
|
2019-03-29 09:32:26 +01:00
|
|
|
make install ) && \
|
2019-03-28 21:45:29 +01:00
|
|
|
(cd /app/modules/oniguruma && \
|
2017-02-23 22:01:43 -06:00
|
|
|
make uninstall ) && \
|
2019-03-29 09:32:26 +01:00
|
|
|
(cd /app && \
|
|
|
|
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 \
|
2019-03-28 18:49:35 +01:00
|
|
|
python3 \
|
|
|
|
python3-pip && \
|
2015-07-06 18:55:44 -07:00
|
|
|
apt-get autoremove -y && \
|
2019-03-28 21:45:29 +01:00
|
|
|
rm -rf /app/modules/oniguruma/* && \
|
|
|
|
rm -rf /app/modules/oniguruma/.git && \
|
|
|
|
rm -rf /app/modules/oniguruma/.gitignore && \
|
2015-07-06 18:55:44 -07:00
|
|
|
rm -rf /var/lib/apt/lists/* /var/lib/gems
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/jq"]
|
2015-09-05 12:59:54 -07:00
|
|
|
CMD []
|