-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated dependencies (moved to urfave repos, lowercase sirupsen/logru…
…s), removed gorilla/context and moved to go context, moved logging to stdout and added Dockerfile
- Loading branch information
1 parent
5c20b14
commit 267c762
Showing
29 changed files
with
252 additions
and
168 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 |
---|---|---|
|
@@ -29,4 +29,7 @@ _testmain.go | |
gin-bin | ||
sg-restful | ||
|
||
Godeps/_workspace | ||
Godeps/_workspace | ||
tasks.json | ||
*.log | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM golang:latest | ||
|
||
WORKDIR /go/src/app | ||
COPY . . | ||
|
||
# "gogo" | ||
RUN go-wrapper download | ||
# "go install -v ./..." | ||
#CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . | ||
ENV CGO_ENABLED 0 | ||
ENV GOOS linux | ||
RUN go-wrapper install -a -installsuffix cgo | ||
|
||
FROM scratch | ||
COPY --from=0 /go/bin/app . | ||
CMD ["/app"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.