Created
January 17, 2014 21:31
-
-
Save boopathi/8481970 to your computer and use it in GitHub Desktop.
Dockerfile for building Golang application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ubuntu:12.04 | |
maintainer Boopathi Rajaa <me@boopathi.in> | |
# Mercurial | |
run echo 'deb http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu precise main' > /etc/apt/sources.list.d/mercurial.list | |
run echo 'deb-src http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu precise main' >> /etc/apt/sources.list.d/mercurial.list | |
run apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 323293EE | |
# Install dependencies | |
run apt-get update | |
run apt-get install -y curl git bzr mercurial | |
# Install Go | |
run curl -s https://go.googlecode.com/files/go1.2.linux-amd64.tar.gz | tar -v -C /usr/local/ -xz | |
env PATH /usr/local/go/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin | |
env GOPATH /go | |
env GOROOT /usr/local/go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment