mirror of
https://github.com/enix/x509-certificate-exporter.git
synced 2026-08-28 16:27:16 +00:00
19 lines
779 B
Docker
19 lines
779 B
Docker
# E2E-only image: builds the dev/seed-hostpath binary that materialises
|
|
# scenarios.AllHostPath() onto a node's filesystem. Built by Tilt during
|
|
# `task test:e2e` and never published. Runs as root because it has to
|
|
# write into a hostPath; that hostPath is a dedicated subtree under
|
|
# /var/lib/x509ce-e2e/ that lives only inside the throwaway k3d node.
|
|
|
|
# renovate: datasource=docker depName=golang
|
|
FROM golang:1.27.0-alpine@sha256:4c9fe60190a2a3350ddc51de80d0224b8a6698d12bdfc999fee45ea9d6c46dbc AS build
|
|
WORKDIR /src
|
|
ENV CGO_ENABLED=0 GOTOOLCHAIN=auto
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN go build -trimpath -tags netgo,osusergo -o /seed-hostpath ./dev/seed-hostpath
|
|
|
|
FROM scratch
|
|
COPY --from=build /seed-hostpath /seed-hostpath
|
|
ENTRYPOINT ["/seed-hostpath"]
|