kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/go/extractors/cmd/gotool/Dockerfile (about)

     1  # Copyright 2018 The Kythe 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  FROM gcr.io/cloud-builders/go:debian-1.20
    16  
    17  RUN apt-get update && \
    18      apt-get install -y parallel && \
    19      apt-get clean
    20  
    21  # Get a recent go release, remove the current system one so we don't have multiple version problems, and install the new release.
    22  RUN curl -LO https://golang.org/dl/go1.21.6.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.6.linux-amd64.tar.gz
    23  
    24  ADD kythe/go/extractors/cmd/gotool/analyze_packages.sh /usr/local/bin/analyze_packages.sh
    25  ADD kythe/go/extractors/cmd/gotool/gotool /usr/local/bin/extract_go
    26  ADD kythe/go/platform/tools/kzip/kzip /usr/local/bin/
    27  ADD kythe/release/base/fix_permissions.sh /usr/local/bin/
    28  
    29  # running extract_go ensures that any glibc (or other library) incompatibilities are found at image build time rather than later when the image is deployed.
    30  RUN /usr/local/bin/extract_go --help
    31  
    32  ENTRYPOINT ["analyze_packages.sh"]