-
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.
feat(traefik-plugin): ensure the correct is always sent and add local…
… dockerfile for testing
- Loading branch information
1 parent
8c02c3e
commit 0fa2208
Showing
4 changed files
with
52 additions
and
42 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,20 @@ | ||
FROM golang:1.21.4-alpine3.17 AS builder | ||
|
||
RUN apk add --no-cache ca-certificates && update-ca-certificates | ||
|
||
WORKDIR /build | ||
|
||
COPY go.mod go.sum ./ | ||
|
||
RUN go mod download | ||
RUN go mod verify | ||
|
||
COPY . . | ||
|
||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /app/server ./cmd/traefik-github-oauth-server | ||
|
||
WORKDIR /app | ||
|
||
EXPOSE 80 | ||
|
||
ENTRYPOINT ["/app/server"] |
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