forked from TrueCloudLab/certificates
Update Dockerfile.hsm to use debian:bullseye base image
This commit is contained in:
parent
f8adb0a51c
commit
12d8ca526a
1 changed files with 9 additions and 7 deletions
|
@ -1,23 +1,25 @@
|
|||
FROM golang:alpine AS builder
|
||||
FROM golang AS builder
|
||||
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
|
||||
RUN apk add --no-cache curl git make
|
||||
RUN apk add --no-cache gcc musl-dev pkgconf pcsc-lite-dev
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y --no-install-recommends \
|
||||
gcc pkgconf libpcsclite-dev
|
||||
RUN make V=1 download
|
||||
RUN make V=1 GOFLAGS="" build
|
||||
|
||||
FROM smallstep/step-kms-plugin:latest AS kms
|
||||
FROM smallstep/step-kms-plugin:debian AS kms
|
||||
|
||||
FROM smallstep/step-cli:latest
|
||||
FROM smallstep/step-cli:debian
|
||||
|
||||
COPY --from=builder /src/bin/step-ca /usr/local/bin/step-ca
|
||||
COPY --from=kms /usr/local/bin/step-kms-plugin /usr/local/bin/step-kms-plugin
|
||||
|
||||
USER root
|
||||
RUN apk add --no-cache libcap && setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/step-ca
|
||||
RUN apk add --no-cache pcsc-lite pcsc-lite-libs
|
||||
RUN apt-get install -y --no-install-recommends libcap2-bin && \
|
||||
setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/step-ca
|
||||
RUN apt-get install -y --no-install-recommends pcscd libpcsclite1
|
||||
RUN mkdir -p /run/pcscd
|
||||
RUN chown step:step /run/pcscd
|
||||
USER step
|
||||
|
|
Loading…
Reference in a new issue