-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add dep configuration files. * chore: add vendor folder. * refactor: update Dockerfile. * review: remove git from Dockerfile. * review: remove RUN apk. * review: dep status. * feat: added .dockerignore
- Loading branch information
Showing
1,217 changed files
with
363,499 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.git | ||
lego.exe | ||
lego | ||
.lego | ||
.gitcookies | ||
.idea | ||
.vscode/ | ||
dist/ | ||
builds/ |
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 |
---|---|---|
|
@@ -6,4 +6,3 @@ lego | |
.vscode/ | ||
dist/ | ||
builds/ | ||
vendor/ |
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
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,16 +1,12 @@ | ||
FROM golang:alpine3.7 as builder | ||
|
||
ARG LEGO_VERSION=master | ||
ARG LEGO_VERSION=dev | ||
|
||
RUN apk update && \ | ||
apk add --no-cache --virtual git && \ | ||
go get -u github.com/xenolf/lego && \ | ||
cd ${GOPATH}/src/github.com/xenolf/lego && \ | ||
git checkout ${LEGO_VERSION} && \ | ||
go build -o /usr/bin/lego . | ||
WORKDIR /go/src/github.com/xenolf/lego | ||
COPY . . | ||
RUN go build -ldflags="-s -X main.version=${LEGO_VERSION}" | ||
|
||
FROM alpine:3.7 | ||
RUN apk update && apk add --no-cache --virtual ca-certificates | ||
COPY --from=builder /usr/bin/lego /usr/bin/lego | ||
|
||
COPY --from=builder /go/src/github.com/xenolf/lego/lego /usr/bin/lego | ||
ENTRYPOINT [ "/usr/bin/lego" ] |
Oops, something went wrong.