Skip to content

Commit 287c2b2

Browse files
committed
adds jq1.5
1 parent 5b8720c commit 287c2b2

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

9.6/Dockerfile

+18-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# vim:set ft=dockerfile:
22
FROM debian:jessie
33

4-
RUN RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
5-
64
RUN set -ex; \
75
if ! command -v gpg > /dev/null; then \
86
apt-get update; \
97
apt-get install -y --no-install-recommends \
10-
git-lfs \
8+
curl \
119
gnupg \
1210
dirmngr \
1311
; \
@@ -17,12 +15,6 @@ RUN set -ex; \
1715
# explicitly set user/group IDs
1816
RUN groupadd -r postgres --gid=999 && useradd -r -g postgres --uid=999 postgres
1917

20-
# install dockerize
21-
ENV DOCKERIZE_VERSION v0.5.0
22-
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
23-
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
24-
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
25-
2618
# grab gosu for easy step-down from root
2719
ENV GOSU_VERSION 1.10
2820
RUN set -x \
@@ -37,6 +29,23 @@ RUN set -x \
3729
&& gosu nobody true \
3830
&& apt-get purge -y --auto-remove ca-certificates wget
3931

32+
# install git-lfs
33+
RUN set -x \
34+
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates curl ssh wget \
35+
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
36+
&& apt-get install -y --no-install-recommends git-lfs \
37+
&& rm -rf /var/lib/apt/lists/*
38+
39+
# install jq 1.5
40+
RUN sudo curl -Lo /usr/local/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 \
41+
&& sudo chmod +x /usr/local/bin/jq
42+
43+
# install dockerize
44+
ENV DOCKERIZE_VERSION v0.5.0
45+
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
46+
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
47+
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
48+
4049
# make the "en_US.UTF-8" locale so postgres will be utf-8 enabled by default
4150
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
4251
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

0 commit comments

Comments
 (0)