Davide Pesavento | e76d7b5 | 2024-04-09 16:54:01 -0400 | [diff] [blame^] | 1 | # syntax=docker/dockerfile:1 |
Varun Patil | 23135a4 | 2023-11-18 15:12:42 -0800 | [diff] [blame] | 2 | |
Davide Pesavento | e76d7b5 | 2024-04-09 16:54:01 -0400 | [diff] [blame^] | 3 | ARG NDN_CXX_VERSION=latest |
| 4 | ARG NFD_VERSION=latest |
| 5 | FROM ghcr.io/named-data/nfd-build:${NFD_VERSION} AS build |
| 6 | |
| 7 | FROM ghcr.io/named-data/ndn-cxx-runtime:${NDN_CXX_VERSION} |
| 8 | |
| 9 | RUN --mount=type=bind,from=build,source=/deps,target=/deps \ |
| 10 | apt-get install -Uy --no-install-recommends $(cat /deps/nfdc) \ |
| 11 | python3 \ |
Varun Patil | 23135a4 | 2023-11-18 15:12:42 -0800 | [diff] [blame] | 12 | && rm -rf /var/lib/apt/lists/* |
| 13 | |
Davide Pesavento | e76d7b5 | 2024-04-09 16:54:01 -0400 | [diff] [blame^] | 14 | COPY --link --from=build /usr/bin/nfdc /usr/bin/ |
| 15 | COPY --link --from=build /usr/bin/nfd-status-http-server /usr/bin/ |
| 16 | COPY --link --from=build /usr/share/ndn/ /usr/share/ndn/ |
| 17 | |
Varun Patil | 23135a4 | 2023-11-18 15:12:42 -0800 | [diff] [blame] | 18 | VOLUME /run/nfd |
| 19 | |
| 20 | EXPOSE 8080/tcp |
| 21 | |
Davide Pesavento | e76d7b5 | 2024-04-09 16:54:01 -0400 | [diff] [blame^] | 22 | ENTRYPOINT ["/usr/bin/nfd-status-http-server", "--address", "0.0.0.0"] |