Public Repository

Last pushed: a year ago
Short Description
Ubuntu 14.04, Go 1.6.3, and some extra dependencies.
Full Description

Copy both files, then build with: docker build -t variadico/ubgo .

Dockerfile

FROM ubuntu:14.04

RUN apt-get update && apt-get install -y --no-install-recommends \
        g++ \
        gcc \
        ca-certificates \
        curl \
        git \
        vim \
        pkg-config \
        libkrb5-dev \
        libssl-dev \
        libc6-dev \
        make \
    && rm -rf /var/lib/apt/lists/*

ENV GOLANG_VERSION 1.6.3
ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
ENV GOLANG_DOWNLOAD_SHA256 cdde5e08530c0579255d6153b08fdb3b8e47caabbe717bc7bcd7561275a87aeb

RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \
    && echo "$GOLANG_DOWNLOAD_SHA256  golang.tar.gz" | sha256sum -c - \
    && tar -C /usr/local -xzf golang.tar.gz \
    && rm golang.tar.gz

ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH

RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
WORKDIR $GOPATH

COPY go-wrapper /usr/local/bin/
Docker Pull Command
Owner
variadico

Comments (0)