forked from hound-search/hound
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request hound-search#222 from kellegous/new-docker
Simplify Dockerfile
- Loading branch information
Showing
3 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
FROM alpine | ||
|
||
ENV GOPATH /go | ||
|
||
COPY . /go/src/github.com/etsy/hound | ||
ONBUILD COPY config.json /hound/ | ||
|
||
COPY default-config.json /data/config.json | ||
|
||
RUN apk update \ | ||
&& apk add go git subversion mercurial bzr openssh \ | ||
&& go install github.com/etsy/hound/cmds/houndd \ | ||
&& apk del go \ | ||
&& rm -f /var/cache/apk/* \ | ||
&& rm -rf /go/src /go/pkg | ||
|
||
VOLUME ["/data"] | ||
|
||
EXPOSE 6080 | ||
|
||
ENTRYPOINT ["/go/bin/houndd", "-conf", "/hound/config.json"] | ||
ENTRYPOINT ["/go/bin/houndd", "-conf", "/data/config.json"] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"dbpath" : "db", | ||
"repos" : { | ||
"Hound" : { | ||
"url" : "https://github.com/etsy/hound.git" | ||
} | ||
} | ||
} |