diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..059a9c45 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM golang + +WORKDIR /build +COPY . /build +RUN CGO_ENABLED=0 go build -o spiffe-helper ./cmd/spiffe-helper + +FROM scratch +COPY --from=0 /build/spiffe-helper /spiffe-helper +ENTRYPOINT ["/spiffe-helper"] +CMD ["-config", "/etc/spiffe-helper.conf"]