dockerfiles/devops/nomad/Dockerfile

18 lines
515 B
Docker

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 && \
go get -u -tags ${NOMAD_VERSION} github.com/hashicorp/nomad && \
echo "nomad built" && \
mv /go/bin/* /usr/local/bin && \
rm -rf /go && \
apk del make git go gcc musl-dev openssl-dev && \
rm -rf /var/cache/apk/*
CMD /usr/local/bin/nomad