golang.org/x/build@v0.0.0-20240506185731-218518f32b70/env/linux-x86-fedora/Dockerfile (about)

     1  # Copyright 2019 The Go Authors. All rights reserved.
     2  # Use of this source code is governed by a BSD-style
     3  # license that can be found in the LICENSE file.
     4  
     5  FROM golang/buildlet-stage0 AS stage0
     6  
     7  FROM fedora:30
     8  MAINTAINER golang-dev <golang-dev@googlegroups.com>
     9  
    10  RUN yum -y update && yum -y install \
    11      ca-certificates \
    12      findutils \
    13      gcc \
    14      glibc-static \
    15      patch \
    16      strace \
    17      which \
    18      openssh-server \
    19      make \
    20      sudo \
    21      iproute \
    22      && true
    23  
    24  RUN ssh-keygen -A
    25  
    26  RUN mkdir -p /goboot-amd64 \
    27  	&& ( \
    28  		curl --silent https://storage.googleapis.com/golang/go1.13.4.linux-amd64.tar.gz | tar -C /goboot-amd64 -zxv \
    29  	) \
    30  	&& mv /goboot-amd64/go /goboot \
    31  	&& rm -rf /goboot-amd64 \
    32  	&& rm -rf /goboot/pkg/linux_amd64_race \
    33  		/goboot/api \
    34  		/goboot/blog \
    35  		/goboot/doc \
    36  		/goboot/misc \
    37  		/goboot/test \
    38  	&& find /goboot -type d -name testdata | xargs rm -rf
    39  
    40  COPY --from=stage0 /go/bin/* /usr/local/bin/
    41  
    42  CMD ["/usr/local/bin/run-worker.sh"]