-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
6 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,12 +1,17 @@ | ||
FROM alpine:latest | ||
MAINTAINER Jason Wilder <mail@jasonwilder.com> | ||
FROM golang:1.8.3-alpine3.6 AS binary | ||
RUN apk -U add openssl git | ||
|
||
ADD . /go/src/github.com/jwilder/dockerize | ||
WORKDIR /go/src/github.com/jwilder/dockerize | ||
|
||
RUN apk -U add openssl | ||
RUN go get github.com/robfig/glock | ||
RUN glock sync -n < GLOCKFILE | ||
RUN go install | ||
|
||
ENV VERSION v0.4.0 | ||
ENV DOWNLOAD_URL https://github.com/jwilder/dockerize/releases/download/$VERSION/dockerize-alpine-linux-amd64-$VERSION.tar.gz | ||
FROM alpine:3.6 | ||
MAINTAINER Jason Wilder <mail@jasonwilder.com> | ||
|
||
RUN wget -qO- $DOWNLOAD_URL | tar xvz -C /usr/local/bin | ||
COPY --from=binary /go/bin/dockerize /usr/local/bin | ||
|
||
ENTRYPOINT ["dockerize"] | ||
CMD ["--help"] |