From 16a528fc842f930d12081d31ce7a6aa633069001 Mon Sep 17 00:00:00 2001 From: Michael Pleshakov Date: Mon, 29 Jan 2018 08:45:03 +0000 Subject: [PATCH] Prevent a possible failure of building Plus image (#231) --- nginx-controller/DockerfileForPlus | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx-controller/DockerfileForPlus b/nginx-controller/DockerfileForPlus index 7f182865ff..ed45f37b07 100644 --- a/nginx-controller/DockerfileForPlus +++ b/nginx-controller/DockerfileForPlus @@ -12,6 +12,9 @@ RUN apt-get update && apt-get install -y -q wget lsb-release apt-transport-https ADD nginx-repo.crt /etc/ssl/nginx/ ADD nginx-repo.key /etc/ssl/nginx/ +# Make sure the certificate and key have correct permissions +RUN chmod 644 /etc/ssl/nginx/* + # Get other files required for installation RUN wget -q -O - http://nginx.org/keys/nginx_signing.key | apt-key add - RUN wget -q -O /etc/apt/apt.conf.d/90nginx https://cs.nginx.com/static/files/90nginx