k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/cluster/images/etcd/Dockerfile.windows (about) 1 # Copyright 2021 The Kubernetes Authors. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 ARG RUNNERIMAGE 16 FROM ${RUNNERIMAGE} 17 18 EXPOSE 2379 2380 4001 7001 19 20 COPY etcd* etcdctl* /usr/local/bin/ 21 COPY migrate-if-needed.bat /usr/local/bin/ 22 COPY migrate /usr/local/bin/migrate.exe 23 24 # NOTE(claudiub): docker buildx sets the PATH env variable to a Linux-like PATH, 25 # # which is not desirable. See: https://github.com/moby/buildkit/issues/1560 26 # # TODO(claudiub): remove this once the issue has been resolved. 27 ENV PATH="C:\usr\local\bin;C:\Windows\system32;C:\Windows;"