Initial commit

Signed-off-by: Yilin Sun <imi415@imi.moe>
This commit is contained in:
Yilin Sun 2023-05-27 17:42:08 +08:00
commit adbe503f0a
Signed by: imi415
GPG Key ID: 17F01E106F9F5E0A
1 changed files with 17 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -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