commit adbe503f0a4d8e8e3a8ebfafa3c909133bbaf145 Author: Yilin Sun Date: Sat May 27 17:42:08 2023 +0800 Initial commit Signed-off-by: Yilin Sun diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bc37454 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +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 + +