Skip to content

Instantly share code, notes, and snippets.

@surma
Created June 18, 2013 12:09
Show Gist options
  • Save surma/5804826 to your computer and use it in GitHub Desktop.
Save surma/5804826 to your computer and use it in GitHub Desktop.
Docker Buildfile for a Ubuntu system with go1.1.1 installed
FROM ubuntu
MAINTAINER Alexander Surma <surma@surmair.de>
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y git mercurial bzr wget
RUN wget -O - https://go.googlecode.com/files/go1.1.1.linux-amd64.tar.gz | tar xzf - -C /usr/local
RUN (echo "export PATH=/usr/local/go/bin:\$PATH"; echo "export GOPATH=$HOME"; cat /etc/bash.bashrc) > /root/tmp
RUN mv /root/tmp /etc/bash.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment