From b15df25fc05fdc4896e425750fa1512e8efb018d Mon Sep 17 00:00:00 2001 From: Fabrizio Steiner Date: Fri, 2 Mar 2018 14:23:57 +0100 Subject: [PATCH] Build containers from scratch and use ca-certificates and zoneinfo from latest alpine. --- dockerfile/amd64/Dockerfile | 18 +++++++++++++++++- dockerfile/armhf/Dockerfile | 18 +++++++++++++++++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/dockerfile/amd64/Dockerfile b/dockerfile/amd64/Dockerfile index bc85457..13b19e8 100644 --- a/dockerfile/amd64/Dockerfile +++ b/dockerfile/amd64/Dockerfile @@ -1,4 +1,20 @@ -FROM centurylink/ca-certs +# +# Alpine image to get some needed data +# +FROM alpine:latest as alpine +RUN apk add --no-cache \ + ca-certificates \ + tzdata + +# +# Image +# +FROM scratch LABEL "com.centurylinklabs.watchtower"="true" + +# copy files from other containers +COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt +COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo + COPY watchtower / ENTRYPOINT ["/watchtower"] \ No newline at end of file diff --git a/dockerfile/armhf/Dockerfile b/dockerfile/armhf/Dockerfile index bc85457..13b19e8 100644 --- a/dockerfile/armhf/Dockerfile +++ b/dockerfile/armhf/Dockerfile @@ -1,4 +1,20 @@ -FROM centurylink/ca-certs +# +# Alpine image to get some needed data +# +FROM alpine:latest as alpine +RUN apk add --no-cache \ + ca-certificates \ + tzdata + +# +# Image +# +FROM scratch LABEL "com.centurylinklabs.watchtower"="true" + +# copy files from other containers +COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt +COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo + COPY watchtower / ENTRYPOINT ["/watchtower"] \ No newline at end of file