-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Two Dockerfiles for minimal and complete images, closes #30
- Loading branch information
1 parent
229c280
commit 5366c65
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM golang | ||
FROM ibnesayeed/busybox-certs | ||
MAINTAINER Sawood Alam <[email protected]> | ||
|
||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM golang | ||
MAINTAINER Sawood Alam <[email protected]> | ||
|
||
COPY . /go/src/github.com/oduwsdl/memgator | ||
WORKDIR /go/src/github.com/oduwsdl/memgator | ||
RUN go install -v | ||
|
||
ENTRYPOINT ["memgator"] |