-
Notifications
You must be signed in to change notification settings - Fork 18
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
1 parent
fc2db69
commit 47487be
Showing
2 changed files
with
46 additions
and
0 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,22 @@ | ||
FROM golang:1.12 as builder | ||
|
||
WORKDIR /project | ||
COPY main.go go.mod go.sum ./ | ||
COPY downloader ./downloader | ||
ADD vendor ./vendor | ||
ADD version ./version | ||
|
||
# Production-ready build, without debug information specifically for linux | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o=gitmoo-goog -mod=vendor . | ||
|
||
|
||
FROM alpine:3.12 | ||
|
||
# Add CA certificates required for SSL connections | ||
RUN apk add --update --no-cache ca-certificates | ||
|
||
COPY --from=builder /project/gitmoo-goog /usr/local/bin/gitmoo-goog | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
ENTRYPOINT ["/usr/local/bin/gitmoo-goog"] |
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