dockerfiles/devops/nomad/Dockerfile

18 lines
515 B
Docker
Raw Normal View History

2016-04-17 23:48:06 +00:00
FROM alpine:edge
ENV NOMAD_VERSION v0.3.1
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk update; apk upgrade && \
apk add curl make git go gcc musl-dev openssl-dev && \
mkdir /go && \
export GOPATH=/go && \
2016-04-18 17:20:56 +00:00
go get -u -tags ${NOMAD_VERSION} github.com/hashicorp/nomad && \
2016-04-18 17:02:57 +00:00
echo "nomad built" && \
2016-04-17 23:48:06 +00:00
mv /go/bin/* /usr/local/bin && \
rm -rf /go && \
2016-04-18 17:20:56 +00:00
apk del make git go gcc musl-dev openssl-dev && \
2016-04-17 23:48:06 +00:00
rm -rf /var/cache/apk/*
2016-04-18 17:02:57 +00:00
CMD /usr/local/bin/nomad