Last active
August 29, 2015 14:04
-
-
Save verdverm/01226df91bc602c21823 to your computer and use it in GitHub Desktop.
Revel 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:1.3 | |
RUN go get github.com/revel/cmd/revel | |
VOLUME ["/gopath/src"] | |
WORKDIR /gopath/src | |
CMD revel run github.com/revel/revel/samples/chat | |
EXPOSE 9000 | |
### Use as follows | |
### | |
### run in foreground: | |
### docker run -i -t -p 9000:9000 -v </absolute/path/to/app>:/gopath/src verdverm/revel revel run <path/to/app> | |
### | |
### run in background: | |
### docker run -d -p 9000:9000 -v </absolute/path/to/app>:/gopath/src verdverm/revel revel run <path/to/app> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment