Dockerfile 875 B

123456789101112131415161718192021222324252627282930313233
  1. FROM ubuntu:18.04
  2. ENV PATH /root/.cargo/bin:$PATH
  3. RUN apt update && \
  4. apt install -y --no-install-recommends \
  5. make \
  6. gcc-arm-none-eabi \
  7. binutils-arm-none-eabi \
  8. libnewlib-arm-none-eabi \
  9. autoconf \
  10. automake \
  11. libtool \
  12. curl \
  13. wget \
  14. g++ \
  15. unzip \
  16. build-essential \
  17. python \
  18. python-pip \
  19. libstdc++-arm-none-eabi-newlib \
  20. libclang-10-dev \
  21. clang-format-10 \
  22. && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  23. RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --profile=minimal --target thumbv7em-none-eabi thumbv7em-none-eabihf && \
  24. rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
  25. COPY entrypoint.sh syntax_check.sh /
  26. RUN chmod +x /syntax_check.sh
  27. ENTRYPOINT ["/entrypoint.sh"]