gifs/api
2014-10-17
gifs/api/Dockerfile
Create a Dockerfile and binary. Write a Dockerfile that compiles everything and runs it. Start the binary; load a Context from etcd, and start everything running. The binary is pretty useless until we get HTTP handlers, though, obviously.
| paddy@7 | 1 FROM google/golang |
| paddy@7 | 2 |
| paddy@7 | 3 ADD . /gopath/src/code.secondbit.org/gifs/api |
| paddy@7 | 4 WORKDIR /gopath/src/code.secondbit.org/gifs/api |
| paddy@7 | 5 RUN go get -v ./... |
| paddy@7 | 6 WORKDIR /gopath/src/code.secondbit.org/gifs/api/gifsd |
| paddy@7 | 7 RUN go build . |
| paddy@7 | 8 |
| paddy@7 | 9 CMD ["/gopath/src/code.secondbit.org/gifs/api/gifsd/gifsd"] |