Skip to content

Instantly share code, notes, and snippets.

@verdverm
Last active August 29, 2015 14:04
Show Gist options
  • Save verdverm/01226df91bc602c21823 to your computer and use it in GitHub Desktop.
Save verdverm/01226df91bc602c21823 to your computer and use it in GitHub Desktop.
Revel Dockerfile
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