Last active
October 29, 2015 04:36
-
-
Save yitsushi/5c99dd30fc578a20c604 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 alpine | |
| MAINTAINER Balazs Nadasdi <[email protected]> | |
| # Update package index and install go + git | |
| RUN apk add --update go git | |
| # Set up GOPATH | |
| RUN mkdir /go | |
| ENV GOPATH /go | |
| # Get dependencies | |
| RUN go get gopkg.in/mgo.v2 && \ | |
| go get github.com/go-martini/martini && \ | |
| go get gopkg.in/redis.v3 | |
| # Add current working directory | |
| ADD . /go/src/github.com/Yitsushi/livetogether | |
| # Build it :) | |
| RUN go install github.com/Yitsushi/livetogether | |
| # Every time I start the container I want to rebuild | |
| # because I mount it when I use it for development | |
| ENTRYPOINT go install github.com/Yitsushi/livetogether && \ | |
| /go/bin/livetogether --config=/go/src/github.com/Yitsushi/livetogether/config.json | |
| # Expose where the application wants to listen | |
| EXPOSE 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment