Skip to content

Commit

Permalink
A more minimal docker build.
Browse files Browse the repository at this point in the history
This cuts the size of the the image to around 1/3 by removing the build
dependencies and the apk indexes.
  • Loading branch information
kellegous committed Mar 24, 2016
1 parent d4b74ea commit 0d3a9a3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
FROM golang:alpine
FROM alpine

ENV GOPATH /go
COPY . /go/src/github.com/etsy/hound
ONBUILD COPY config.json /hound/
RUN apk update && apk add git subversion mercurial bzr
RUN go install github.com/etsy/hound/cmds/houndd
RUN apk update \
&& apk add go git subversion mercurial bzr \
&& go install github.com/etsy/hound/cmds/houndd \
&& apk del go \
&& rm -f /var/cache/apk/* \
&& rm -rf /go/src /go/pkg \

EXPOSE 6080

Expand Down

0 comments on commit 0d3a9a3

Please sign in to comment.