DISABLE FDs (REMOVE ME).
[jackhill/mal.git] / jq / Dockerfile
1 FROM ubuntu:bionic
2 MAINTAINER Joel Martin <github@martintribe.org>
3
4 ##########################################################
5 # General requirements for testing or common across many
6 # implementations
7 ##########################################################
8
9 RUN apt-get -y update
10
11 # Required for running tests
12 RUN apt-get -y install make python
13
14 # Some typical implementation and test requirements
15 RUN apt-get -y install curl libreadline-dev libedit-dev libpcre3-dev
16
17 RUN mkdir -p /mal
18 WORKDIR /mal
19
20 #########################################################
21 # Specific implementation requirements
22 #########################################################
23
24 RUN apt-get -y install python3.8 wget
25 RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.8 10
26
27 # grab jq 1.6 from github releases
28 RUN wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
29
30 RUN chmod +x jq-linux64
31 # a bit ugly, but it'll do?
32 RUN mv jq-linux64 /usr/bin/jq