blob: 179f9a6905cd53d9328e580bc0e136174daf4962 [file] [log] [blame]
Davide Pesaventoe76d7b52024-04-09 16:54:01 -04001# syntax=docker/dockerfile:1
Varun Patil23135a42023-11-18 15:12:42 -08002
Davide Pesaventoe76d7b52024-04-09 16:54:01 -04003ARG NDN_CXX_VERSION=latest
4ARG NFD_VERSION=latest
5FROM ghcr.io/named-data/nfd-build:${NFD_VERSION} AS build
6
7FROM ghcr.io/named-data/ndn-cxx-runtime:${NDN_CXX_VERSION}
8
9RUN --mount=type=bind,from=build,source=/deps,target=/deps \
10 apt-get install -Uy --no-install-recommends $(cat /deps/nfdc) \
11 python3 \
Varun Patil23135a42023-11-18 15:12:42 -080012 && rm -rf /var/lib/apt/lists/*
13
Davide Pesaventoe76d7b52024-04-09 16:54:01 -040014COPY --link --from=build /usr/bin/nfdc /usr/bin/
15COPY --link --from=build /usr/bin/nfd-status-http-server /usr/bin/
16COPY --link --from=build /usr/share/ndn/ /usr/share/ndn/
17
Varun Patil23135a42023-11-18 15:12:42 -080018VOLUME /run/nfd
19
20EXPOSE 8080/tcp
21
Davide Pesaventoe76d7b52024-04-09 16:54:01 -040022ENTRYPOINT ["/usr/bin/nfd-status-http-server", "--address", "0.0.0.0"]