From 8ec4b07e0179b9326bf5927aafaffe5ddd7f5fed Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Mon, 23 Jan 2023 17:50:59 -0800 Subject: [PATCH] Add missing Dockerfile --- docker/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docker/Dockerfile diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..0718e0b --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,18 @@ +FROM golang:alpine AS builder + +WORKDIR /src +COPY . . + +RUN apk add --no-cache git make +RUN apk add --no-cache gcc musl-dev pkgconf pcsc-lite-dev +RUN make V=1 build + +FROM smallstep/step-cli:latest + +COPY --from=builder /src/bin/step-kms-plugin /usr/local/bin/step-kms-plugin + +USER root +RUN apk add --no-cache pcsc-lite pcsc-lite-libs +USER step + +CMD ["/bin/bash"] \ No newline at end of file