Sign inSign up

xuper/ubuntu-builder

By xuper

Updated over 6 years ago

Builder image for xuperchain on ubuntu

Image
0

200

xuper/ubuntu-builder repository overview

Overview

ubuntu-builder is the Builder image for xuperchain on ubuntu.

It can also be used to compile other go project.

Usage

$ cd $project_root
$ docker run --rm -u `id -u`:`id -g` -v `pwd`:`pwd` -w `pwd` xuper/ubuntu-builder:0.1 make

Dockerfile

FROM ubuntu:14.04

RUN apt-get update && apt-get install -y gcc-4.8 g++-4.8 make curl git
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8
RUN update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 60

RUN curl -L https://dl.google.com/go/go1.13.8.linux-amd64.tar.gz | tar xzf - -C /opt/
ENV GOPROXY=https://goproxy.cn
ENV PATH="/opt/go/bin:${PATH}"

Tag summary

Content type

Image

Digest

Size

255.6 MB

Last updated

over 6 years ago

docker pull xuper/ubuntu-builder:0.1