Skip to content

Instantly share code, notes, and snippets.

@jeffdonthemic
Created August 7, 2014 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffdonthemic/bc9e4c2a02383f793d73 to your computer and use it in GitHub Desktop.
Save jeffdonthemic/bc9e4c2a02383f793d73 to your computer and use it in GitHub Desktop.
'Cribs' Dockerfile
FROM google/golang
WORKDIR /gopath/src/github.com/topcoderinc/cribs
ADD . /gopath/src/github.com/topcoderinc/cribs/
# go get all of the dependencies
RUN go get github.com/codegangsta/martini
RUN go get github.com/codegangsta/martini-contrib/render
RUN go get github.com/codegangsta/martini-contrib/binding
RUN go get labix.org/v2/mgo
RUN go get labix.org/v2/mgo/bson
RUN go get github.com/topcoderinc/cribs
# set env variables to mongo
ENV MONGO_DB YOUR-MONGO-DB
ENV MONGO_URL YOUR-MONGO-URL
EXPOSE 8080
CMD []
ENTRYPOINT ["/gopath/bin/cribs"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment