| ADD almalinux-10-minimal-amd64.tar.xz / # buildkit |
| CMD ["/bin/bash"] |
| RUN /bin/sh -c microdnf install -y --setopt=install_weak_deps=0 gnupg2 ca-certificates && microdnf clean all # buildkit |
| RUN /bin/sh -c p=$(find /usr -name gpg-wks-server -type f | head -n1) && test -n "$p" && ln -s "$p" /usr/local/bin/gpg-wks-server # buildkit |
| RUN /bin/sh -c useradd -r -u 10001 -m -d /home/wks wks && mkdir -p /data /staging /state && chown wks /data /staging /state # buildkit |
| ENV GNUPGHOME=/data/gnupg WKS_DIR=/data/wks WKS_SERVER=/usr/local/bin/gpg-wks-server WKS_STAGING_DIR=/staging WKS_LOCK=/data/.publish.lock |
| COPY /out/wks-keys /usr/local/bin/wks-keys # buildkit |
| USER wks |
| VOLUME [/data] |
| ENTRYPOINT ["/usr/local/bin/wks-keys"] |
| CMD ["bridge"] |