Dockerfile.cpu 1000 B

1234567891011121314151617181920212223242526272829303132333435
  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. # hadolint ignore=DL3008
  6. RUN apt-get update && apt-get install -y \
  7. cmake build-essential git --no-install-recommends
  8. WORKDIR /home/wamr
  9. COPY . .
  10. WORKDIR /home/wamr/product-mini/platforms/linux/build
  11. # hadolint ignore=DL3008
  12. RUN apt-get install -y wget ca-certificates --no-install-recommends \
  13. && mkdir /usr/local/share/ca-certificates/cacert.org \
  14. && wget -qP /usr/local/share/ca-certificates/cacert.org http://www.cacert.org/certs/root.crt http://www.cacert.org/certs/class3.crt \
  15. && update-ca-certificates \
  16. && git config --global http.sslCAinfo /etc/ssl/certs/ca-certificates.crt
  17. RUN cmake \
  18. -DWAMR_BUILD_WASI_NN=1 \
  19. ..
  20. RUN make -j "$(grep -c ^processor /proc/cpuinfo)"
  21. FROM ubuntu:22.04
  22. COPY --from=base /home/wamr/product-mini/platforms/linux/build/iwasm /iwasm
  23. ENTRYPOINT [ "/iwasm" ]