Created
August 7, 2014 16:46
-
-
Save jeffdonthemic/bc9e4c2a02383f793d73 to your computer and use it in GitHub Desktop.
'Cribs' Dockerfile
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 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