Skip to content

Commit

Permalink
Merge pull request #19 from Tritlo/master
Browse files Browse the repository at this point in the history
Use static binary in container
  • Loading branch information
CWSpear committed Jun 4, 2016
2 parents 534e497 + ad1bf2d commit 136147a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
FROM golang:1.5-onbuild
FROM alpine:latest

# onbuild handles all teh things
ENV VERSION 1.1.0
ENV ARCH amd64

ADD https://github.com/CWSpear/local-persist/releases/download/v${VERSION}/local-persist-linux-${ARCH} /usr/bin/docker-volume-local-persist
RUN chmod +x /usr/bin/docker-volume-local-persist

ADD https://github.com/Yelp/dumb-init/releases/download/v1.0.3/dumb-init_1.0.3_amd64 /usr/bin/dumb-init
RUN chmod +x /usr/bin/dumb-init

CMD ["dumb-init", "/usr/bin/docker-volume-local-persist"]

0 comments on commit 136147a

Please sign in to comment.