forked from LeanerCloud/AutoSpotting
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Marketplace support (LeanerCloud#466)
Adds support for releasing stable builds on the AWS Marketplace
- Loading branch information
Showing
18 changed files
with
1,010 additions
and
336 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
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM golang:1.16-alpine | ||
|
||
ARG flavor | ||
|
||
RUN apk add -U --no-cache ca-certificates git make | ||
|
||
COPY . /src | ||
WORKDIR /src | ||
|
||
RUN CGO_ENABLED=0 FLAVOR="$flavor" make ci |
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,11 @@ | ||
FROM golang:1.16-alpine as golang | ||
RUN apk add -U --no-cache ca-certificates git make | ||
COPY . /src | ||
WORKDIR /src | ||
RUN FLAVOR=stable CGO_ENABLED=0 GOPROXY=direct make | ||
|
||
FROM alpine:3.14.1 | ||
COPY LICENSE BINARY_LICENSE THIRDPARTY / | ||
COPY --from=golang /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=golang /src/AutoSpotting . | ||
ENTRYPOINT ["./AutoSpotting"] |
Oops, something went wrong.