Skip to content

Commit 8a228a0

Browse files
committed
Simplify Dockerfile
1 parent ed547ac commit 8a228a0

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
FROM alpine
22

33
ENV GOPATH /go
4+
45
COPY . /go/src/github.com/etsy/hound
5-
ONBUILD COPY config.json /hound/
6+
7+
COPY default-config.json /data/config.json
8+
69
RUN apk update \
710
&& apk add go git subversion mercurial bzr openssh \
811
&& go install github.com/etsy/hound/cmds/houndd \
912
&& apk del go \
1013
&& rm -f /var/cache/apk/* \
1114
&& rm -rf /go/src /go/pkg
1215

16+
VOLUME ["/data"]
17+
1318
EXPOSE 6080
1419

15-
ENTRYPOINT ["/go/bin/houndd", "-conf", "/hound/config.json"]
20+
ENTRYPOINT ["/go/bin/houndd", "-conf", "/data/config.json"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ go get github.com/etsy/hound/cmds/...
3434
3535
2. Run
3636
```
37-
docker run -it --rm -p 6080:6080 --name houndd -v $(pwd):/hound etsy/hound
37+
docker run -d -p 6080:6080 --name hound -v $(pwd):/data etsy/hound
3838
```
3939
4040
You should be able to navigate to [http://localhost:6080/](http://localhost:6080/) as usual.

default-config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"dbpath" : "db",
3+
"repos" : {
4+
"Hound" : {
5+
"url" : "https://github.com/etsy/hound.git"
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)