2016-12-02 22:14:12 +03:00
|
|
|
# Copyright 2017 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.
|
|
|
|
|
|
|
|
# Alpine Linux builder
|
|
|
|
# Docker tag gcr.io/go-dashboard-dev/linux-x86-alpine (staging)
|
|
|
|
# and gcr.io/symbolic-datum-552/linux-x86-alpine (prod)
|
|
|
|
|
2018-05-14 21:51:11 +03:00
|
|
|
FROM golang/buildlet-stage0 AS stage0
|
|
|
|
|
2023-08-23 00:11:38 +03:00
|
|
|
FROM alpine:3.18
|
2016-12-02 22:14:12 +03:00
|
|
|
MAINTAINER golang-dev <golang-dev@googlegroups.com>
|
|
|
|
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
bash \
|
|
|
|
binutils \
|
|
|
|
build-base \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
gcc \
|
|
|
|
gdb \
|
|
|
|
gfortran \
|
|
|
|
git \
|
2023-04-24 20:30:32 +03:00
|
|
|
git-daemon \
|
2016-12-02 22:14:12 +03:00
|
|
|
go \
|
|
|
|
libc-dev \
|
|
|
|
lsof \
|
2022-02-03 20:50:31 +03:00
|
|
|
make \
|
2019-11-15 23:31:23 +03:00
|
|
|
openssh \
|
2016-12-02 22:14:12 +03:00
|
|
|
procps \
|
2023-06-29 18:13:59 +03:00
|
|
|
strace \
|
2023-07-25 20:46:54 +03:00
|
|
|
iproute2 \
|
2023-06-29 18:13:59 +03:00
|
|
|
sudo
|
2016-12-02 22:14:12 +03:00
|
|
|
|
2019-11-15 23:31:23 +03:00
|
|
|
RUN ssh-keygen -A
|
|
|
|
RUN bash -c "(echo ChallengeResponseAuthentication no; echo PasswordAuthentication no; echo PermitRootLogin yes) > /etc/ssh/sshd_config"
|
2022-08-09 00:33:32 +03:00
|
|
|
RUN bash -c "passwd -u root || true" # might already be unlocked
|
2019-11-15 23:31:23 +03:00
|
|
|
|
2023-06-28 00:40:56 +03:00
|
|
|
COPY --from=stage0 /go/bin/* /usr/local/bin/
|
2016-12-02 22:14:12 +03:00
|
|
|
|
|
|
|
ENV GOROOT_BOOTSTRAP=/usr/lib/go
|
2018-05-14 21:51:11 +03:00
|
|
|
|
2023-06-28 00:40:56 +03:00
|
|
|
CMD ["/usr/local/bin/run-worker.sh"]
|