File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,25 @@ FROM builder-${TARGETARCH} AS builder
33
33
34
34
# #######################
35
35
36
- FROM ${BASE_IMAGE} AS container-fat
36
+ FROM ${BASE_IMAGE} AS base-updated
37
+ RUN <<EOF
38
+ apt-get update
39
+ apt-get upgrade -y
40
+ apt-get clean -y
41
+ rm -rf \
42
+ /var/cache/debconf/* \
43
+ /var/lib/apt/lists/* \
44
+ /var/log/* \
45
+ /tmp/* \
46
+ /var/tmp/*
47
+ EOF
48
+
49
+ FROM scratch AS base
50
+ COPY --from=base-updated / /
51
+
52
+ # #######################
53
+
54
+ FROM base AS container-fat
37
55
38
56
ARG SLIM_PACKAGES
39
57
RUN clean-install \
@@ -62,7 +80,7 @@ ENTRYPOINT ["/usr/local/bin/kubelet"]
62
80
63
81
# #######################
64
82
65
- FROM ${BASE_IMAGE} AS container-slim
83
+ FROM base AS container-slim
66
84
67
85
ARG SLIM_PACKAGES
68
86
RUN clean-install \
You can’t perform that action at this time.
0 commit comments