From efb572d5c4ea8fcc5677aa6a9db71fd0ac502cf0 Mon Sep 17 00:00:00 2001 From: amrrus Date: Mon, 29 Apr 2019 09:40:19 +0200 Subject: [PATCH] Updated gosu instalation to use apt install --- 10/Dockerfile | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/10/Dockerfile b/10/Dockerfile index a3b460e079..6b46c4cb6f 100644 --- a/10/Dockerfile +++ b/10/Dockerfile @@ -22,19 +22,15 @@ RUN set -eux; \ chown -R postgres:postgres /var/lib/postgresql # grab gosu for easy step-down from root -ENV GOSU_VERSION 1.11 -RUN set -x \ - && apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* \ - && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \ - && wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \ - && export GNUPGHOME="$(mktemp -d)" \ - && gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \ - && gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \ - && { command -v gpgconf > /dev/null && gpgconf --kill all || :; } \ - && rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \ - && chmod +x /usr/local/bin/gosu \ - && gosu nobody true \ - && apt-get purge -y --auto-remove ca-certificates wget + +ENV GOSU_VERSION 1.10-1+b2 + +RUN set -eux; \ + apt-get update; \ + apt-get install -y gosu=$GOSU_VERSION; \ + rm -rf /var/lib/apt/lists/*; \ +# verify that the binary works + gosu nobody true # make the "en_US.UTF-8" locale so postgres will be utf-8 enabled by default RUN set -eux; \