File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 2
2
# Use of this source code is governed by a BSD-style
3
3
# license that can be found in the LICENSE file.
4
4
5
- FROM golang:1.13 AS build
6
- LABEL maintainer
"[email protected] "
7
-
8
- ENV GO111MODULE=on
9
- ENV GOPROXY=https://proxy.golang.org
5
+ FROM golang:1.19 AS build
6
+ LABEL maintainer=
"[email protected] "
10
7
11
8
RUN mkdir /gocache
12
9
ENV GOCACHE /gocache
@@ -26,6 +23,6 @@ COPY . /go/src/golang.org/x/build/
26
23
RUN go install golang.org/x/build/cmd/buildlet/stage0
27
24
RUN CGO_ENABLED=0 go build -o /go/bin/stage0.static golang.org/x/build/cmd/buildlet/stage0
28
25
29
- FROM golang:1.13
26
+ FROM golang:1.19
30
27
COPY --from=build /go/bin/stage0 /go/bin/stage0
31
28
COPY --from=build /go/bin/stage0.static /go/bin/stage0.static
Original file line number Diff line number Diff line change 8
8
9
9
FROM golang/buildlet-stage0 AS stage0
10
10
11
- FROM alpine:3.10
11
+ FROM alpine:3.16
12
12
MAINTAINER golang-dev <
[email protected] >
13
13
14
14
RUN apk add --no-cache \
@@ -31,7 +31,7 @@ RUN apk add --no-cache \
31
31
32
32
RUN ssh-keygen -A
33
33
RUN bash -c "(echo ChallengeResponseAuthentication no; echo PasswordAuthentication no; echo PermitRootLogin yes) > /etc/ssh/sshd_config"
34
- RUN passwd -u root
34
+ RUN bash -c " passwd -u root || true" # might already be unlocked
35
35
36
36
COPY --from=stage0 /go/bin/stage0.static /usr/local/bin/stage0
37
37
You can’t perform that action at this time.
0 commit comments