Last active
January 3, 2016 19:59
-
-
Save mschoch/8512212 to your computer and use it in GitHub Desktop.
Dockerfile for dustin/tiny + go
This file contains hidden or 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 dustin/tiny | |
MAINTAINER Marty Schoch "[email protected]" | |
# install some additional compiler/build/dev tools | |
# not all of these are strictly required | |
# but they are common enough for things you'll use with go anyway | |
RUN apt-get update | |
RUN apt-get install -y netbase gcc g++ make libtool autoconf mercurial git | |
# build go | |
RUN mkdir -p /opt/go/root | |
RUN hg clone -u release https://code.google.com/p/go /opt/go/root | |
# for tip | |
#RUN cd /opt/go/root && hg update default | |
RUN cd /opt/go/root/src && ./all.bash | |
# set up go to be used | |
RUN mkdir /opt/go/path | |
ENV GOPATH /opt/go/path | |
env PATH /opt/go/root/bin:/opt/go/path/bin:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment