Skip to content

Instantly share code, notes, and snippets.

@mschoch
Last active January 3, 2016 19:59
Show Gist options
  • Save mschoch/8512212 to your computer and use it in GitHub Desktop.
Save mschoch/8512212 to your computer and use it in GitHub Desktop.
Dockerfile for dustin/tiny + go
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