go.etcd.io/etcd@v3.3.27+incompatible/Dockerfile-release.arm64 (about) 1 # TODO: move to k8s.gcr.io/build-image/debian-base-arm64:bullseye-1.y.z when patched 2 FROM arm64v8/debian:bullseye-20210927 3 4 ADD etcd /usr/local/bin/ 5 ADD etcdctl /usr/local/bin/ 6 ADD var/etcd /var/etcd 7 ADD var/lib/etcd /var/lib/etcd 8 9 # Alpine Linux doesn't use pam, which means that there is no /etc/nsswitch.conf, 10 # but Golang relies on /etc/nsswitch.conf to check the order of DNS resolving 11 # (see https://github.com/golang/go/commit/9dee7771f561cf6aee081c0af6658cc81fac3918) 12 # To fix this we just create /etc/nsswitch.conf and add the following line: 13 RUN echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf 14 15 EXPOSE 2379 2380 16 17 # Define default command. 18 CMD ["/usr/local/bin/etcd"]