Dockerfile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. FROM ubuntu:hirsute
  2. RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
  3. ca-certificates \
  4. build-essential \
  5. python3 \
  6. git \
  7. clang-format-12 \
  8. dfu-util \
  9. openocd \
  10. libncurses5 \
  11. python-setuptools \
  12. libpython2.7-dev \
  13. libxml2-dev \
  14. libxslt1-dev \
  15. zlib1g-dev \
  16. wget && \
  17. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  18. RUN wget --progress=dot:giga "https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.07/gcc-arm-none-eabi-10.3-2021.07-$(uname -m)-linux.tar.bz2" && \
  19. tar xjf gcc-arm-none-eabi-10.3-2021.07-$(uname -m)-linux.tar.bz2 && \
  20. rm gcc-arm-none-eabi-10.3-2021.07-$(uname -m)-linux.tar.bz2 && \
  21. cd gcc-arm-none-eabi-10.3-2021.07/bin/ && \
  22. rm -rf ../share && \
  23. for file in * ; do ln -s "${PWD}/${file}" "/usr/bin/${file}" ; done && \
  24. cd / && arm-none-eabi-gcc -v && arm-none-eabi-gdb -v
  25. RUN wget --progress=dot:giga -O - https://bootstrap.pypa.io/pip/2.7/get-pip.py | python2 && \
  26. pip install --no-cache-dir lxml==4.6.3
  27. RUN git clone --depth 1 --branch v0.4.1 https://github.com/atomicobject/heatshrink.git && \
  28. cd heatshrink && make && mv ./heatshrink /usr/local/bin/heatshrink
  29. COPY entrypoint.sh syntax_check.sh /
  30. RUN chmod +x /syntax_check.sh
  31. ENTRYPOINT ["/entrypoint.sh"]