From 5366c652988bae5363bd92f5611ca4692487efde Mon Sep 17 00:00:00 2001 From: Sawood Alam Date: Sun, 25 Oct 2015 22:59:34 -0400 Subject: [PATCH] Two Dockerfiles for minimal and complete images, closes #30 --- Dockerfile | 10 +++++----- Dockerfile-build | 8 ++++++++ 2 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 Dockerfile-build 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"]