Dockerfile.cpu 575 B

123456789101112131415161718192021222324252627
  1. # Copyright (C) 2019 Intel Corporation. All rights reserved.
  2. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3. FROM ubuntu:20.04 AS base
  4. ENV DEBIAN_FRONTEND=noninteractive
  5. RUN apt-get update && apt-get install -y \
  6. cmake build-essential git
  7. WORKDIR /home/wamr
  8. COPY . .
  9. WORKDIR /home/wamr/core/iwasm/libraries/wasi-nn/test/build
  10. RUN cmake \
  11. -DWAMR_BUILD_WASI_NN=1 \
  12. ..
  13. RUN make -j $(grep -c ^processor /proc/cpuinfo)
  14. FROM ubuntu:22.04
  15. COPY --from=base /home/wamr/core/iwasm/libraries/wasi-nn/test/build/iwasm /run/iwasm
  16. ENTRYPOINT [ "/run/iwasm" ]