github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/contrib/builder/deb/ppc64le/ubuntu-trusty/Dockerfile (about) 1 # 2 # THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/ppc64le/generate.sh"! 3 # 4 5 FROM ppc64le/ubuntu:trusty 6 7 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 libsqlite3-dev pkg-config vim-common golang-1.6 libsystemd-journal-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* 8 9 # Install Go 10 # ppc64le doesn't have official go binaries, so use a distro packaged version of go 11 # to build go from source. 12 # NOTE: ppc64le has compatibility issues with older versions of go, so make sure the version >= 1.6 13 ENV GO_VERSION 1.7.3 14 ENV GO_DOWNLOAD_URL https://golang.org/dl/go${GO_VERSION}.src.tar.gz 15 ENV GOROOT_BOOTSTRAP /usr/lib/go-1.6 16 17 RUN curl -fsSL "$GO_DOWNLOAD_URL" -o golang.tar.gz \ 18 && tar -C /usr/local -xzf golang.tar.gz \ 19 && rm golang.tar.gz \ 20 && cd /usr/local/go/src && ./make.bash 2>&1 \ 21 && apt-get purge -y golang-1.6 && apt-get autoremove -y 22 23 ENV PATH $PATH:/usr/local/go/bin 24 25 ENV AUTO_GOPATH 1 26 27 ENV DOCKER_BUILDTAGS apparmor pkcs11 selinux 28 ENV RUNC_BUILDTAGS apparmor selinux