From 726e25180dadde5c6dfec0577ec1608021a2ebad Mon Sep 17 00:00:00 2001 From: Yilin Sun Date: Sat, 3 Jun 2023 00:16:15 +0800 Subject: [PATCH] Added CodeChecker. Signed-off-by: Yilin Sun --- Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index bc37454..53fb47a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,20 @@ -FROM ubuntu:jammy +# syntax=docker/dockerfile:1-labs +FROM python:3-bullseye 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 +ADD --checksum=sha256:17455a06c816031cc2c66243c117cba48463cd6a3a3fdfac7275b4e9c40eb314 \ + 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 sed -ie 's/deb.debian.org/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 DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake xz-utils clang cppcheck clang-tidy RUN tar -xf /opt/toolchain.tar.xz --strip-components 1 -C /usr/local RUN rm /opt/toolchain.tar.xz - +RUN pip install codechecker