Skip to content

Instantly share code, notes, and snippets.

@larryprice
Created June 26, 2015 14:01
Show Gist options
  • Save larryprice/52b3c6da267a4fa8973f to your computer and use it in GitHub Desktop.
Save larryprice/52b3c6da267a4fa8973f to your computer and use it in GitHub Desktop.
Golang dockering with gpm vendoring
FROM golang:1.4
# install gpm
RUN git clone https://github.com/pote/gpm.git /tmp/gpm
WORKDIR /tmp/gpm
RUN ./configure && make install
# sets the working directory to the application source for convenience
ADD . /go/src/github.com/larryprice/myapp
WORKDIR /go/src/github.com/larryprice/myapp
ENV GOPATH /go/src/github.com/larryprice/myapp/.godeps:$GOPATH
RUN gpm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment