diff --git a/Dockerfile b/Dockerfile index d7e9636..821826a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM golang +FROM ibnesayeed/busybox-certs MAINTAINER Sawood Alam -COPY . /go/src/github.com/oduwsdl/memgator -WORKDIR /go/src/github.com/oduwsdl/memgator -RUN go install -v +RUN wget -q -O /memgator https://github.com/oduwsdl/memgator/releases/download/1.0-rc2/memgator-linux-amd64 && chmod +x /memgator +# Once non-pre release is out, this line can be used to build docker image for the latest release +# RUN wget -q -O - https://api.github.com/repos/oduwsdl/memgator/releases/latest | grep "browser_download_url" | grep "memgator-linux-amd64" | cut -d'"' -f 4 | wget -q -i - -O /memgator && chmod +x /memgator -ENTRYPOINT ["memgator"] +ENTRYPOINT ["/memgator"] diff --git a/Dockerfile-build b/Dockerfile-build new file mode 100644 index 0000000..d7e9636 --- /dev/null +++ b/Dockerfile-build @@ -0,0 +1,8 @@ +FROM golang +MAINTAINER Sawood Alam + +COPY . /go/src/github.com/oduwsdl/memgator +WORKDIR /go/src/github.com/oduwsdl/memgator +RUN go install -v + +ENTRYPOINT ["memgator"]