mirror of
https://github.com/eliasstepanik/caddy-ingess.git
synced 2026-01-10 20:18:28 +00:00
* remove test data * Create helm chart using the suggested structure from helm3 * Fix minor naming consistency in Dockerfile * Move skaffold to use helm chart * improve skaffold configuration * Update chart name to use the naming convenction * update sample path * Update contribution guideline * Add helm chart validation rules * Add chart home since is a required field * Add linting action for helm charts * Add fixes to chart definition * fix timeout duration * Update kind cluster * test CI with minikube * Add MetalLB to test load balancer feature * Publish chart when merged on master * test publishing chart with fake tag * move charts dir * finalize charts publishing CI * reformat skaffold
21 lines
514 B
Docker
21 lines
514 B
Docker
FROM golang:1.14.2-alpine AS builder
|
|
WORKDIR /app
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY ./cmd ./cmd
|
|
COPY ./pkg ./pkg
|
|
COPY ./internal ./internal
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/ingress-controller ./cmd/caddy
|
|
|
|
FROM alpine:latest AS certs
|
|
RUN apk --update add ca-certificates
|
|
|
|
FROM scratch
|
|
COPY --from=builder /app/bin/ingress-controller .
|
|
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
EXPOSE 80 443
|
|
ENTRYPOINT ["/ingress-controller"]
|