dockerfile: initial
This commit is contained in:
parent
2e678ac806
commit
c1a4a6ecbb
1 changed files with 24 additions and 0 deletions
24
Dockerfile
Normal file
24
Dockerfile
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# vim: ft=dockerfile
|
||||||
|
FROM golang
|
||||||
|
MAINTAINER Jimmy Zelinskie <jimmyzelinskie@gmail.com>
|
||||||
|
|
||||||
|
# Add files
|
||||||
|
WORKDIR /go/src/github.com/chihaya/chihaya/
|
||||||
|
RUN mkdir -p /go/src/github.com/chihaya/chihaya/
|
||||||
|
ADD chihaya.go /go/src/github.com/chihaya/chihaya/
|
||||||
|
ADD backend /go/src/github.com/chihaya/chihaya/backend
|
||||||
|
ADD cmd /go/src/github.com/chihaya/chihaya/cmd
|
||||||
|
ADD config /go/src/github.com/chihaya/chihaya/config
|
||||||
|
ADD http /go/src/github.com/chihaya/chihaya/http
|
||||||
|
ADD stats /go/src/github.com/chihaya/chihaya/stats
|
||||||
|
ADD tracker /go/src/github.com/chihaya/chihaya/tracker
|
||||||
|
ADD Godeps /go/src/github.com/chihaya/chihaya/Godeps
|
||||||
|
|
||||||
|
# Install
|
||||||
|
RUN go get ./...
|
||||||
|
RUN go install
|
||||||
|
|
||||||
|
# docker run -p 6881:6881 -v $PATH_TO_DIR_WITH_CONF_FILE:/config quay.io/jzelinskie/chihaya
|
||||||
|
VOLUME ["/config"]
|
||||||
|
EXPOSE 6881
|
||||||
|
CMD ["chihaya", "-config=/config/config.json", "-logtostderr=true"]
|
Loading…
Reference in a new issue