diff options
author | Dmitry Puzikov <dmitry.puzikov@tieto.com> | 2019-04-15 17:00:12 +0200 |
---|---|---|
committer | Dmitry Puzikov <dmitry.puzikov@tieto.com> | 2019-04-16 09:47:10 +0200 |
commit | f8cb32e4a72bb19605a4f72220697af09072d4d4 (patch) | |
tree | 28653036e2d01070678cebb495ee2992542a9aef /Dockerfiles/haproxy/Dockerfile | |
parent | 8eea516732e6fa5987a06979221f2b9cf34586a1 (diff) |
Rebase image on haproxy-alpine
Change-Id: I0bcdc783f54880b40bf48147f3184797b43b1b25
Issue-ID: INT-805
Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
Diffstat (limited to 'Dockerfiles/haproxy/Dockerfile')
-rw-r--r-- | Dockerfiles/haproxy/Dockerfile | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/Dockerfiles/haproxy/Dockerfile b/Dockerfiles/haproxy/Dockerfile index f6d6c283..7bf9b20a 100644 --- a/Dockerfiles/haproxy/Dockerfile +++ b/Dockerfiles/haproxy/Dockerfile @@ -1,4 +1,4 @@ -FROM haproxy:1.7 +FROM haproxy:1.7-alpine # Set up your corporate proxy if there is ENV HTTP_PROXY "" @@ -6,17 +6,10 @@ ENV HTTPS_PROXY "" ENV http_proxy "" ENV https_proxy "" -ENV DEBIAN_FRONTEND=noninteractive - -RUN if [ ! -z ${HTTP_PROXY} ]; \ - then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; \ - fi && \ - if [ ! -z ${HTTP_PROXY} ]; \ - then echo "Acquire::https::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; \ - fi && \ - apt-get update && \ - apt-get -y install ca-certificates openssl curl && \ - rm -rf /var/lib/apt/lists/* +RUN apk add --no-cache \ + ca-certificates \ + curl \ + openssl RUN mkdir -p /etc/ssl/certs/ && mkdir -p /etc/ssl/private |