-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile_improject
More file actions
38 lines (30 loc) · 1.05 KB
/
Dockerfile_improject
File metadata and controls
38 lines (30 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM ubuntu:22.04
LABEL maintainer="Igor Misic <igy1000mb@gmail.com>"
RUN apt-get update && apt-get -y --quiet --no-install-recommends install \
build-essential \
ca-certificates \
git \
python3 \
wget \
tar \
xz-utils \
&& apt-get -y autoremove \
&& apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
# astyle v3.1
COPY astyle /usr/bin/
# cppcheck 2.13.4
COPY cppcheck /opt/cppcheck
ENV PATH="/opt/cppcheck:$PATH"
# Set toolchain version and download URL
ENV GCC_VERSION=14.2.rel1
ENV TOOLCHAIN_URL=https://developer.arm.com/-/media/Files/downloads/gnu/${GCC_VERSION}/binrel/arm-gnu-toolchain-${GCC_VERSION}-x86_64-arm-none-eabi.tar.xz
# Download and extract the toolchain
RUN wget -q ${TOOLCHAIN_URL} -O toolchain.tar.xz && \
mkdir -p /opt/arm-toolchain && \
tar -xf toolchain.tar.xz -C /opt/arm-toolchain --strip-components=1 && \
rm toolchain.tar.xz
# Update PATH environment variable
ENV PATH="/opt/arm-toolchain/bin:$PATH"
# Verify the installation
RUN arm-none-eabi-gcc --version