Skip to content

Commit b15df25

Browse files
committed
Build containers from scratch and use ca-certificates and zoneinfo from latest alpine.
1 parent 05513dd commit b15df25

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

dockerfile/amd64/Dockerfile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
FROM centurylink/ca-certs
1+
#
2+
# Alpine image to get some needed data
3+
#
4+
FROM alpine:latest as alpine
5+
RUN apk add --no-cache \
6+
ca-certificates \
7+
tzdata
8+
9+
#
10+
# Image
11+
#
12+
FROM scratch
213
LABEL "com.centurylinklabs.watchtower"="true"
14+
15+
# copy files from other containers
16+
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
17+
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo
18+
319
COPY watchtower /
420
ENTRYPOINT ["/watchtower"]

dockerfile/armhf/Dockerfile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
FROM centurylink/ca-certs
1+
#
2+
# Alpine image to get some needed data
3+
#
4+
FROM alpine:latest as alpine
5+
RUN apk add --no-cache \
6+
ca-certificates \
7+
tzdata
8+
9+
#
10+
# Image
11+
#
12+
FROM scratch
213
LABEL "com.centurylinklabs.watchtower"="true"
14+
15+
# copy files from other containers
16+
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
17+
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo
18+
319
COPY watchtower /
420
ENTRYPOINT ["/watchtower"]

0 commit comments

Comments
 (0)