blob: f81c5f4e3510cd5486e88c1e26c9167813ce1d3f [file] [log] [blame]
# Copyright 2020 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
FROM debian:buster
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install --yes \
gcc curl strace \
ca-certificates netbase \
procps lsof psmisc \
RUN mkdir /usr/local/go-bootstrap && \
curl --silent | \
tar -C /usr/local/go-bootstrap -zxv
ENV GOROOT_BOOTSTRAP /usr/local/go-bootstrap
RUN curl -o /usr/local/bin/stage0 && \
chmod +x /usr/local/bin/stage0
ENV GO_BUILDER_ENV host-linux-arm64-aws
CMD ["/usr/local/bin/stage0"]