kanidm/kanidmd/Dockerfile
Firstyear ec48edac82
13 135 webauthn support (#332)
Fixes #13 and Fixes #135 - webauthn and webauthn with cli. This is the core of webauthn, but only as a single factor. Some changes are still needed for webauthn as MFA and as a verified single factor. This will be made in a subsequent PR.
2020-12-02 11:12:07 +10:00

45 lines
991 B
Docker

ARG BASE_IMAGE=opensuse/tumbleweed:latest
FROM ${BASE_IMAGE} AS builder
LABEL mantainer william@blackhats.net.au
RUN zypper -vv ref && \
zypper install -y \
cargo \
rust \
gcc \
clang lld \
make automake autoconf \
libopenssl-devel pam-devel && \
zypper clean -a
COPY . /usr/src/kanidm
WORKDIR /usr/src/kanidm/kanidmd
RUN ln -s -f /usr/bin/clang /usr/bin/cc && \
ln -s -f /usr/bin/ld.lld /usr/bin/ld
RUN CC=/usr/bin/clang RUSTC_BOOTSTRAP=1 RUSTFLAGS='-C target-feature=+avx2,+avx' \
cargo build --features=concread/simd_support,libsqlite3-sys/bundled \
--release
FROM ${BASE_IMAGE}
LABEL mantainer william@blackhats.net.au
RUN zypper ref && \
zypper install -y \
timezone \
sqlite3 \
pam && \
zypper clean -a
COPY --from=builder /usr/src/kanidm/target/release/kanidmd /sbin/
EXPOSE 8443 3636
VOLUME /data
ENV RUST_BACKTRACE 1
CMD ["/sbin/kanidmd", "server", "-c", "/data/server.toml"]