1
1
# vim:set ft=dockerfile:
2
2
FROM debian:jessie
3
3
4
- RUN RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
5
-
6
4
RUN set -ex; \
7
5
if ! command -v gpg > /dev/null; then \
8
6
apt-get update; \
9
7
apt-get install -y --no-install-recommends \
10
- git-lfs \
8
+ curl \
11
9
gnupg \
12
10
dirmngr \
13
11
; \
@@ -17,12 +15,6 @@ RUN set -ex; \
17
15
# explicitly set user/group IDs
18
16
RUN groupadd -r postgres --gid=999 && useradd -r -g postgres --uid=999 postgres
19
17
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
-
26
18
# grab gosu for easy step-down from root
27
19
ENV GOSU_VERSION 1.10
28
20
RUN set -x \
@@ -37,6 +29,23 @@ RUN set -x \
37
29
&& gosu nobody true \
38
30
&& apt-get purge -y --auto-remove ca-certificates wget
39
31
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
+
40
49
# make the "en_US.UTF-8" locale so postgres will be utf-8 enabled by default
41
50
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
42
51
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
0 commit comments