Skip to content

Commit

Permalink
Two Dockerfiles for minimal and complete images, closes #30
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnesayeed committed Oct 26, 2015
1 parent 229c280 commit 5366c65
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM golang
FROM ibnesayeed/busybox-certs
MAINTAINER Sawood Alam <ibnesayeed@gmail.com>

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"]
8 changes: 8 additions & 0 deletions Dockerfile-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM golang
MAINTAINER Sawood Alam <ibnesayeed@gmail.com>

COPY . /go/src/github.com/oduwsdl/memgator
WORKDIR /go/src/github.com/oduwsdl/memgator
RUN go install -v

ENTRYPOINT ["memgator"]

0 comments on commit 5366c65

Please sign in to comment.