Docker generated using the Dockerfile:
ARG IMAGE=ubuntu:24.04
# Use base image as extractor for the zip file
FROM ${IMAGE} AS base
RUN apt-get -y update && \
apt-get -y install zip
COPY st-stm32cubeclt_1.21.0_27995_20260219_1804_amd64.deb_bundle.sh.zip /tmp/stm32cubeclt-installer.sh.zip
# Unzip STM32 Cube CLT and delete zip file
RUN unzip -p /tmp/stm32cubeclt-installer.sh.zip > /tmp/stm32cubeclt-installer.sh && rm /tmp/stm32cubeclt-installer.sh.zip
# Set environment variables and labels in the last tag
FROM ${IMAGE}
ENV STM32CUBECLT_VERSION=1.21.0
ENV DEBIAN_FRONTEND=noninteractive
ENV LICENSE_ALREADY_ACCEPTED=1
ENV TZ=Etc/UTC
ENV STM32CUBECLT_PATH=/opt/st/stm32cubeclt_${STM32CUBECLT_VERSION}
ENV PATH="${PATH}:${STM32CUBECLT_PATH}/GNU-tools-for-STM32/bin:${STM32CUBECLT_PATH}/STM32CubeProgrammer/bin"
ENV DISPLAY=:0
# Install dependencies
RUN apt-get -y update && \
apt-get -y install gcc g++ x11-apps libswt-gtk-4-java default-jdk astyle make cmake ninja-build
COPY --from=base /tmp/stm32cubeclt-installer.sh /tmp
# Install STM32 Cube IDE and delete installer
RUN chmod +x /tmp/stm32cubeclt-installer.sh && \
/tmp/stm32cubeclt-installer.sh && \
rm /tmp/stm32cubeclt-installer.sh
In order to test it:
docker run --rm circutor/stm32cubeclt:latest arm-none-eabi-gcc --version
Content type
Image
Digest
sha256:ac9e9dbe6…
Size
1.9 GB
Last updated
7 months ago
docker pull circutor/stm32cubeclt