github.com/GoogleContainerTools/skaffold@v1.39.18/deploy/skaffold/Dockerfile (about)

     1  # Copyright 2019 The Skaffold Authors All rights reserved.
     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  # This base image is built using docker from cache every single time as build step.
    16  FROM gcr.io/k8s-skaffold/build_deps:latest as build
    17  WORKDIR /skaffold
    18  # force to use gke_gcloud_auth_plugin for gcp k8s authentcation.
    19  ENV USE_GKE_GCLOUD_AUTH_PLUGIN True
    20  
    21  FROM build as builder
    22  ARG VERSION
    23  COPY . .
    24  RUN make clean out/skaffold VERSION=$VERSION && mv out/skaffold /usr/bin/skaffold && rm -rf secrets $SECRET cmd/skaffold/app/cmd/statik/statik.go
    25  
    26  FROM build as release
    27  COPY --from=builder /usr/bin/skaffold /usr/bin/skaffold
    28  RUN skaffold credits -d /THIRD_PARTY_NOTICES