-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename module, add attribution and notices
- Loading branch information
1 parent
7c6196c
commit a61dbfe
Showing
7 changed files
with
58 additions
and
31 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,21 +1,23 @@ | ||
# build | ||
FROM golang:1.17-alpine AS builder | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
# ADD go.mod main.go /app/ | ||
|
||
COPY go.mod ./ | ||
COPY go.sum ./ | ||
RUN go mod download | ||
|
||
COPY *.go ./ | ||
|
||
RUN go build -o ./udp-echo | ||
RUN go build -o ./gw | ||
|
||
# deploy | ||
FROM alpine AS runner | ||
|
||
RUN mkdir /app/ | ||
RUN mkdir /app/ | ||
|
||
WORKDIR /app | ||
COPY --from=builder /app/udp-echo ./ | ||
COPY --from=builder /app/gw ./ | ||
|
||
CMD ["./udp-echo"] | ||
CMD ["./gw"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module github.com/fly-aps/udp-echo | ||
module github.com/celzero/gateway | ||
|
||
go 1.17 | ||
go 1.18 | ||
|
||
require github.com/pires/go-proxyproto v0.6.2 |
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