-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/allow-redrive-policy-at-cfg
- Loading branch information
Showing
11 changed files
with
429 additions
and
20 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,19 +1,18 @@ | ||
#FROM golang:alpine as builder | ||
# | ||
#WORKDIR /go/src/github.com/p4tin/goaws | ||
# | ||
#RUN apk add --update --repository https://dl-3.alpinelinux.org/alpine/edge/testing/ git | ||
#RUN go get github.com/golang/dep/cmd/dep | ||
# | ||
#COPY Gopkg.lock Gopkg.toml app ./ | ||
#RUN dep ensure | ||
#COPY . . | ||
# | ||
#RUN go build -o goaws_linux_amd64 app/cmd/goaws.goc | ||
# build image | ||
FROM golang:alpine as build | ||
|
||
WORKDIR /go/src/github.com/p4tin/goaws | ||
|
||
COPY . . | ||
RUN CGO_ENABLED=0 go test ./app/... | ||
RUN go build -o goaws app/cmd/goaws.go | ||
|
||
# release image | ||
FROM alpine | ||
|
||
EXPOSE 4100 | ||
COPY --from=build /go/src/github.com/p4tin/goaws/goaws /goaws | ||
|
||
COPY goaws / | ||
COPY app/conf/goaws.yaml /conf/ | ||
|
||
EXPOSE 4100 | ||
ENTRYPOINT ["/goaws"] |
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
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.