Skip to content

Commit

Permalink
Build containers from scratch and use ca-certificates and zoneinfo fr…
Browse files Browse the repository at this point in the history
…om latest alpine.
  • Loading branch information
stffabi committed Mar 2, 2018
1 parent 05513dd commit b15df25
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
18 changes: 17 additions & 1 deletion dockerfile/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
18 changes: 17 additions & 1 deletion dockerfile/armhf/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit b15df25

Please sign in to comment.