mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
hyperkube: speed up build with better use of docker cache
This commit is contained in:
parent
19b5ca791c
commit
5bcf1f8051
@ -36,9 +36,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update -y \
|
|||||||
|
|
||||||
RUN cp /usr/bin/nsenter /nsenter
|
RUN cp /usr/bin/nsenter /nsenter
|
||||||
|
|
||||||
# Copy the hyperkube binary
|
|
||||||
COPY hyperkube /hyperkube
|
|
||||||
|
|
||||||
# Manifests for the docker guide
|
# Manifests for the docker guide
|
||||||
COPY static-pods/master.json \
|
COPY static-pods/master.json \
|
||||||
static-pods/etcd.json \
|
static-pods/etcd.json \
|
||||||
@ -78,3 +75,7 @@ RUN ln -s /hyperkube /apiserver \
|
|||||||
&& ln -s /hyperkube /kubelet \
|
&& ln -s /hyperkube /kubelet \
|
||||||
&& ln -s /hyperkube /proxy \
|
&& ln -s /hyperkube /proxy \
|
||||||
&& ln -s /hyperkube /scheduler
|
&& ln -s /hyperkube /scheduler
|
||||||
|
|
||||||
|
# Copy the hyperkube binary
|
||||||
|
COPY hyperkube /hyperkube
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user