golang.org/x/build@v0.0.0-20240506185731-218518f32b70/env/linux-x86-alpine/Dockerfile (about) 1 # Copyright 2017 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 # Alpine Linux builder 6 # Docker tag gcr.io/go-dashboard-dev/linux-x86-alpine (staging) 7 # and gcr.io/symbolic-datum-552/linux-x86-alpine (prod) 8 9 FROM golang/buildlet-stage0 AS stage0 10 11 FROM alpine:3.18 12 MAINTAINER golang-dev <golang-dev@googlegroups.com> 13 14 RUN apk add --no-cache \ 15 bash \ 16 binutils \ 17 build-base \ 18 ca-certificates \ 19 curl \ 20 gcc \ 21 gdb \ 22 gfortran \ 23 git \ 24 git-daemon \ 25 go \ 26 libc-dev \ 27 lsof \ 28 make \ 29 openssh \ 30 procps \ 31 strace \ 32 iproute2 \ 33 sudo 34 35 RUN ssh-keygen -A 36 RUN bash -c "(echo ChallengeResponseAuthentication no; echo PasswordAuthentication no; echo PermitRootLogin yes) > /etc/ssh/sshd_config" 37 RUN bash -c "passwd -u root || true" # might already be unlocked 38 39 COPY --from=stage0 /go/bin/* /usr/local/bin/ 40 41 ENV GOROOT_BOOTSTRAP=/usr/lib/go 42 43 CMD ["/usr/local/bin/run-worker.sh"]