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

     1  # Copyright 2021 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 debian:bullseye
     8  MAINTAINER golang-dev <golang-dev@googlegroups.com>
     9  
    10  ENV DEBIAN_FRONTEND noninteractive
    11  
    12  # bzr: Bazaar VCS supported by cmd/go
    13  # fonts-droid-fallback: required by x/mobile repo
    14  # fossil: Fossil VCS supported by cmd/go
    15  # gcc-multilib: for 32-bit builds
    16  # gcc: for building Go's bootstrap 'dist' prog
    17  # gdb: optionally used by runtime tests for gdb
    18  # gfortran: for compiling cgo with fortran support (multilib for 386)
    19  # git: git VCS supported by cmd/go
    20  # libc6-dev-i386: for 32-bit builds
    21  # libc6-dev: for building Go's bootstrap 'dist' prog
    22  # libgles2-mesa-dev: required by x/mobile repo
    23  # libopenal-dev: required by x/mobile repo
    24  # lsof: misc basic tool
    25  # make: used for setting up benchmarks in the x/benchmark builders
    26  # mercurial: mercurial VCS supported by cmd/go
    27  # netbase: for net package tests, issue 42750
    28  # procps: misc basic tool
    29  # psmisc: misc basic tool
    30  # strace: optionally used by some net/http tests
    31  # subversion: subversion VCS supported by cmd/go
    32  # swig: used for c/c++ interop related tests
    33  # zlib1g: used for ASAN symbolization with clang
    34  RUN apt-get update && apt-get install -y \
    35  	--no-install-recommends \
    36  	bzr \
    37  	ca-certificates \
    38  	curl \
    39  	fonts-droid-fallback \
    40  	fossil \
    41  	gcc \
    42  	gcc-multilib \
    43  	gdb \
    44  	gfortran \
    45  	gfortran-multilib \
    46  	git \
    47  	iptables \
    48  	iproute2 \
    49  	libc6-dev \
    50  	libc6-dev-i386 \
    51  	libgles2-mesa-dev \
    52  	libopenal-dev \
    53  	lsof \
    54  	make \
    55  	mercurial \
    56  	netbase \
    57  	openssh-server \
    58  	procps \
    59  	psmisc \
    60  	strace \
    61  	subversion \
    62  	sudo \
    63  	swig \
    64  	zlib1g \
    65  	&& rm -rf /var/lib/apt/lists/*
    66  
    67  RUN mkdir -p /go1.4-amd64 \
    68  	&& ( \
    69  		curl --silent https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz | tar -C /go1.4-amd64 -zxv \
    70  	) \
    71  	&& mv /go1.4-amd64/go /go1.4 \
    72  	&& rm -rf /go1.4-amd64 \
    73  	&& rm -rf /go1.4/pkg/linux_amd64_race \
    74  		/go1.4/api \
    75  		/go1.4/blog \
    76  		/go1.4/doc \
    77  		/go1.4/misc \
    78  		/go1.4/test \
    79  	&& find /go1.4 -type d -name testdata | xargs rm -rf
    80  
    81  COPY --from=stage0 /go/bin/* /usr/local/bin/
    82  
    83  CMD ["/usr/local/bin/run-worker.sh"]