2016-11-16 20:38:17 -05:00
|
|
|
#
|
|
|
|
# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/aarch64/generate.sh"!
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM aarch64/ubuntu:xenial
|
|
|
|
|
2017-01-17 07:09:50 -05:00
|
|
|
RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libltdl-dev pkg-config vim-common libsystemd-dev golang-go libseccomp-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
2016-11-16 20:38:17 -05:00
|
|
|
|
|
|
|
# Install Go
|
|
|
|
# aarch64 doesn't have official go binaries, so use the version of go installed from
|
|
|
|
# the image to build go from source.
|
2016-12-01 08:33:30 -05:00
|
|
|
ENV GO_VERSION 1.8.1
|
2016-11-16 20:38:17 -05:00
|
|
|
RUN mkdir /usr/src/go && curl -fsSL https://golang.org/dl/go${GO_VERSION}.src.tar.gz | tar -v -C /usr/src/go -xz --strip-components=1 \
|
|
|
|
&& cd /usr/src/go/src \
|
|
|
|
&& GOOS=linux GOARCH=arm64 GOROOT_BOOTSTRAP="$(go env GOROOT)" ./make.bash
|
|
|
|
|
2017-02-20 13:00:43 -05:00
|
|
|
ENV PATH /usr/src/go/bin:$PATH
|
2016-11-16 20:38:17 -05:00
|
|
|
|
|
|
|
ENV AUTO_GOPATH 1
|
|
|
|
|
|
|
|
ENV DOCKER_BUILDTAGS apparmor pkcs11 selinux seccomp
|
|
|
|
ENV RUNC_BUILDTAGS apparmor selinux seccomp
|