-
Notifications
You must be signed in to change notification settings - Fork 853
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build containers from scratch and use ca-certificates and zoneinfo fr…
…om latest alpine.
- Loading branch information
Showing
2 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |