blob: 8a83c9b648db96b7740185da4b571a874701c22c [file] [log] [blame]
Varun Patil794dcbd2024-05-05 16:12:48 -07001# syntax=docker/dockerfile:1
2
3ARG NDN_CXX_VERSION=latest
4FROM ghcr.io/named-data/ndn-cxx-build:${NDN_CXX_VERSION} AS build
5
6ARG JOBS
7ARG SOURCE_DATE_EPOCH
8RUN --mount=rw,target=/src <<EOF
9 set -eux
10 cd /src
11 ./waf configure \
12 --prefix=/usr \
13 --libdir=/usr/lib \
14 --sysconfdir=/etc \
15 --localstatedir=/var \
16 --sharedstatedir=/var
17 ./waf build
18 ./waf install
19EOF
20
21
22FROM ghcr.io/named-data/ndn-cxx-runtime:${NDN_CXX_VERSION} AS ndncert
23
24COPY --link --from=build /usr/lib/libndn-cert.so.* /usr/lib/
25COPY --link --from=build /usr/bin/ndncert-ca-server /usr/bin/
26COPY --link --from=build /usr/bin/ndncert-ca-status /usr/bin/
27COPY --link --from=build /usr/bin/ndncert-send-email-challenge /usr/bin/
28COPY --link --from=build /usr/bin/ndncert-client /usr/bin/
29
30RUN apt-get install -Uy --no-install-recommends \
31 python3 \
32 && apt-get distclean
33
34ENV HOME=/config
35VOLUME /config
36VOLUME /etc/ndncert
37VOLUME /run/nfd
38
39ENTRYPOINT ["/usr/bin/ndncert-ca-server"]
40CMD ["-c", "/config/ca.conf"]