18 lines
548 B
Docker
18 lines
548 B
Docker
|
FROM ubuntu:jammy
|
||
|
|
||
|
ENV TOOLCHAIN_VERSION="12.2.mpacbti-rel1"
|
||
|
|
||
|
ADD https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/${TOOLCHAIN_VERSION}/binrel/arm-gnu-toolchain-${TOOLCHAIN_VERSION}-x86_64-arm-none-eabi.tar.xz /opt/toolchain.tar.xz
|
||
|
|
||
|
RUN sed -ie 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
|
||
|
|
||
|
RUN apt-get update
|
||
|
|
||
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake xz-utils
|
||
|
|
||
|
RUN tar -xf /opt/toolchain.tar.xz --strip-components 1 -C /usr/local
|
||
|
|
||
|
RUN rm /opt/toolchain.tar.xz
|
||
|
|
||
|
|