FROM debian:buster-slim MAINTAINER RUN apt-get update RUN echo 'debconf debconf/frontend select noninteractive' | debconf-set-selections RUN apt-get -yq upgrade # debian extra RUN apt-get -yq install apt-utils # buld deps RUN apt-get -yq install git # softhsm2, for testing RUN apt-get -yq install softhsm2 # p11p and rebar3 dependencies # FIXME: remove unused RUN apt-get -yq install erlang-asn1 erlang-base erlang-common-test erlang-crypto erlang-debugger erlang-dev erlang-dialyzer erlang-eunit erlang-inets erlang-os-mon erlang-public-key erlang-reltool erlang-runtime-tools erlang-ssl erlang-tools # rebar3 dependencies RUN apt-get -yq install erlang-parsetools # rebar3, for building p11p-daemon WORKDIR /usr/local/src RUN git clone https://git.sunet.se/rebar3.git WORKDIR /usr/local/src/rebar3 RUN ./bootstrap RUN ./rebar3 local install ENV PATH="/root/.cache/rebar3/bin:${PATH}" # p11-kit, for p11-kit-remote RUN apt-get -yq install p11-kit # p11p, for p11p-daemon RUN apt-get -yq install make WORKDIR /usr/local/src RUN git clone https://git.sunet.se/p11p.git WORKDIR /usr/local/src/p11p/p11p-daemon RUN make rel WORKDIR /usr/local/src/p11p/p11p-daemon CMD ["make", "shell"]