golang.org/x/build@v0.0.0-20240506185731-218518f32b70/maintner/maintnerd/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 FROM golang:1.21-bookworm AS build 6 LABEL maintainer="golang-dev@googlegroups.com" 7 8 RUN mkdir /gocache 9 ENV GOCACHE /gocache 10 11 COPY go.mod /go/src/golang.org/x/build/go.mod 12 COPY go.sum /go/src/golang.org/x/build/go.sum 13 14 WORKDIR /go/src/golang.org/x/build 15 16 # Optimization for iterative docker build speed, not necessary for correctness: 17 # TODO: write a tool to make writing Go module-friendly Dockerfiles easier. 18 RUN go install cloud.google.com/go/compute/metadata 19 RUN go install cloud.google.com/go/storage 20 RUN go install golang.org/x/crypto/acme/autocert 21 RUN go install golang.org/x/net/http2 22 RUN go install golang.org/x/time/rate 23 RUN go install google.golang.org/grpc 24 25 COPY . /go/src/golang.org/x/build/ 26 27 RUN go install golang.org/x/build/maintner/maintnerd 28 29 30 FROM debian:bookworm 31 LABEL maintainer="golang-dev@googlegroups.com" 32 33 # For interacting with the Go source & subrepos 34 RUN apt-get update && apt-get install -y \ 35 --no-install-recommends \ 36 ca-certificates \ 37 dirmngr \ 38 git-core \ 39 gnupg \ 40 netbase \ 41 openssh-client \ 42 tini \ 43 && rm -rf /var/lib/apt/lists/* 44 45 # Add Github.com's known_hosts entries, so git push calls later don't 46 # prompt, and don't need to have their strict host key checking 47 # disabled. 48 RUN mkdir -p ~/.ssh/ \ 49 && chmod 0700 ~/.ssh/ \ 50 && echo "|1|SFEvEAqYsJ18JCr+0iV4GtlwS4w=|P6oCZUUd/5t9pH4Om7ShlfltRyE= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" > ~/.ssh/known_hosts \ 51 && echo "|1|HygGkfOGLovavKfixjXWFJ7Yk1I=|lb/724row8KDTMC1dZiJlHyjxWM= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" >> ~/.ssh/known_hosts \ 52 && chmod 0600 ~/.ssh/known_hosts 53 54 COPY --from=build /go/bin/maintnerd / 55 ENTRYPOINT ["/usr/bin/tini", "--", "/maintnerd"]