-
Notifications
You must be signed in to change notification settings - Fork 154
/
Dockerfile
34 lines (22 loc) · 942 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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.
FROM scaleway/ubuntu:armhf-xenial
RUN apt-get update
RUN apt-get install --yes \
gcc strace procps psmisc libc6-dev
RUN curl -L -o go1.8.1.tar.gz https://golang.org/dl/go1.8.1.linux-armv6l.tar.gz && \
tar fxzv go1.8.1.tar.gz -C /usr/local
ENV GO_BOOTSTRAP=/usr/local/go
# compiled stage0 binary must be in working dir
COPY stage0 /usr/local/bin/stage0
ENV GO_BUILD_KEY_PATH /buildkey/gobuildkey
ENV GO_BUILD_KEY_DELETE_AFTER_READ true
# Not really, but we're in a container like Kubernetes, and this makes the syscall
# package happy:
ENV IN_KUBERNETES 1
ENV GO_BUILDER_ENV host-linux-arm-scaleway
# env specific
ARG buildlet_bucket
ENV META_BUILDLET_BINARY_URL "https://storage.googleapis.com/$buildlet_bucket/buildlet.linux-arm"
CMD ["/usr/local/bin/stage0"]