Package flex-auth policy service
This commit is contained in:
parent
88c54d0c7a
commit
75fae84b6b
1 changed files with 13 additions and 0 deletions
13
Containerfile
Normal file
13
Containerfile
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
FROM golang:1.23-alpine AS build
|
||||||
|
WORKDIR /src
|
||||||
|
COPY go.mod go.sum ./
|
||||||
|
RUN go mod download
|
||||||
|
COPY . .
|
||||||
|
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/flex-auth ./cmd/flex-auth
|
||||||
|
|
||||||
|
FROM gcr.io/distroless/static-debian12:nonroot
|
||||||
|
COPY --from=build /out/flex-auth /usr/local/bin/flex-auth
|
||||||
|
COPY examples /opt/flex-auth/examples
|
||||||
|
EXPOSE 8080
|
||||||
|
ENTRYPOINT ["/usr/local/bin/flex-auth"]
|
||||||
|
CMD ["serve", "--addr", "0.0.0.0:8080", "--registry", "/opt/flex-auth/examples/tenant-engine/registry_snapshot.json", "--policy", "/opt/flex-auth/examples/tenant-engine/policy_package.md"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue