-
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.
refactor to support urls up to 2048 characters and add better error h…
…andling
- Loading branch information
Showing
16 changed files
with
273 additions
and
293 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 |
---|---|---|
|
@@ -22,6 +22,6 @@ _testmain.go | |
*.exe | ||
*.test | ||
*.prof | ||
/brevis | ||
brevis | ||
/vendor/ | ||
.idea |
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,14 +1,22 @@ | ||
FROM golang:alpine | ||
FROM golang:1.11.2-alpine as builder | ||
MAINTAINER Alexandre Ferland <aferlandqc@gmail.com> | ||
|
||
ENV GO111MODULE=on | ||
|
||
WORKDIR /build | ||
|
||
RUN apk add --no-cache git | ||
|
||
ADD . /go/src/github.com/admiralobvious/brevis | ||
WORKDIR /go/src/github.com/admiralobvious/brevis | ||
COPY go.mod . | ||
COPY go.sum . | ||
|
||
RUN go-wrapper download | ||
RUN go-wrapper install | ||
RUN go mod download | ||
|
||
EXPOSE 1323 | ||
COPY . . | ||
|
||
CMD ["/go/bin/brevis", "--address", "0.0.0.0"] | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build | ||
|
||
FROM scratch | ||
COPY --from=builder /build/brevis /brevis | ||
EXPOSE 1323 | ||
ENTRYPOINT ["/brevis", "--address", "0.0.0.0"] |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.