golang.org/x/build@v0.0.0-20240506185731-218518f32b70/env/linux-x86-stretch/Dockerfile (about) 1 # Copyright 2018 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 # A stage to build just the Delve binary. 8 FROM golang:1.16-stretch AS delvebuild 9 RUN go install github.com/go-delve/delve/cmd/dlv@latest 10 11 FROM debian:stretch 12 MAINTAINER golang-dev <golang-dev@googlegroups.com> 13 14 ENV DEBIAN_FRONTEND noninteractive 15 16 # gdb: optionally used by runtime tests for gdb 17 # strace: optionally used by some net/http tests 18 # gcc libc6-dev: for building Go's bootstrap 'dist' prog 19 # gfortran: for compiling cgo with fortran support (multilib for 386) 20 # libc6-dev-i386 gcc-multilib: for 32-bit builds 21 # procps lsof psmisc: misc basic tools 22 # libgles2-mesa-dev libopenal-dev fonts-droid: required by x/mobile repo 23 RUN apt-get update && apt-get install -y \ 24 --no-install-recommends \ 25 netbase \ 26 ca-certificates \ 27 curl \ 28 gdb \ 29 strace \ 30 gcc \ 31 libc6-dev \ 32 gfortran \ 33 gfortran-multilib \ 34 libc6-dev-i386 \ 35 gcc-multilib \ 36 procps \ 37 lsof \ 38 psmisc \ 39 libgles2-mesa-dev \ 40 libopenal-dev \ 41 fonts-droid-fallback \ 42 openssh-server \ 43 git \ 44 mercurial \ 45 subversion \ 46 iptables \ 47 iproute2 \ 48 swig \ 49 make \ 50 sudo \ 51 && rm -rf /var/lib/apt/lists/* 52 53 RUN mkdir -p /go1.4-amd64 \ 54 && ( \ 55 curl --silent https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz | tar -C /go1.4-amd64 -zxv \ 56 ) \ 57 && mv /go1.4-amd64/go /go1.4 \ 58 && rm -rf /go1.4-amd64 \ 59 && rm -rf /go1.4/pkg/linux_amd64_race \ 60 /go1.4/api \ 61 /go1.4/blog \ 62 /go1.4/doc \ 63 /go1.4/misc \ 64 /go1.4/test \ 65 && find /go1.4 -type d -name testdata | xargs rm -rf 66 67 COPY --from=stage0 /go/bin/* /usr/local/bin/ 68 COPY --from=delvebuild /go/bin/dlv /usr/local/bin/dlv 69 70 CMD ["/usr/local/bin/run-worker.sh"]