golang.org/x/build@v0.0.0-20240506185731-218518f32b70/env/crosscompile/linux-s390x-cross/Dockerfile (about) 1 # Copyright 2016 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 # Linux buildlet image with with cross compilers for linux-s390x. 6 # Docker tag gobuilders/linux-s390x-cross 7 8 FROM golang/buildlet-stage0 AS stage0 9 10 FROM debian:buster 11 MAINTAINER golang-dev <golang-dev@googlegroups.com> 12 13 ENV DEBIAN_FRONTEND noninteractive 14 15 # curl: for getting and unpacking Go 1.4 source 16 # git-core: for interacting with the Go source & subrepos 17 # gcc, libc-dev: for building Go's bootstrap 'dist' prog 18 # gcc-s390x-linux-gnu, libc6-dev-s390x-cross: for s390x builds 19 # procps, lsof, psmisc: misc tools 20 RUN apt-get update && apt-get install -y \ 21 bzip2 \ 22 ca-certificates \ 23 curl \ 24 git-core \ 25 gcc \ 26 libc6-dev \ 27 gcc-s390x-linux-gnu \ 28 libc6-dev-s390x-cross \ 29 procps \ 30 lsof \ 31 psmisc \ 32 sudo \ 33 --no-install-recommends \ 34 && rm -rf /var/lib/apt/lists/* 35 36 RUN mkdir -p /go1.4-amd64 \ 37 && ( \ 38 curl --silent https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz | tar -C /go1.4-amd64 -zxv \ 39 ) \ 40 && mv /go1.4-amd64/go /go1.4 \ 41 && rm -rf /go1.4-amd64 \ 42 && rm -rf /go1.4/pkg/linux_amd64_race \ 43 /go1.4/api \ 44 /go1.4/blog \ 45 /go1.4/doc \ 46 /go1.4/misc \ 47 /go1.4/test \ 48 && find /go1.4 -type d -name testdata | xargs rm -rf 49 50 COPY --from=stage0 /go/bin/* /usr/local/bin/ 51 52 ENV GOROOT_BOOTSTRAP=/go1.4 GOOS=linux GOARCH=s390x CC_FOR_TARGET=s390x-linux-gnu-gcc 53 54 CMD ["/usr/local/bin/run-worker.sh"]