forked from xanderhendriks/docker-stm32cubeide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 1.04 KB
/
Dockerfile
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
ARG IMAGE=ubuntu:22.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 en.st-stm32cubeide_1.16.0_21983_20240628_1741_amd64.deb_bundle.sh.zip /tmp/stm32cubeide-installer.sh.zip
# Unzip STM32 Cube IDE and delete zip file
RUN unzip -p /tmp/stm32cubeide-installer.sh.zip > /tmp/stm32cubeide-installer.sh && rm /tmp/stm32cubeide-installer.sh.zip
# Set environment variables and labels in the last tag
FROM ${IMAGE}
ENV STM32CUBEIDE_VERSION=1.16.0
ENV DEBIAN_FRONTEND=noninteractive
ENV LICENSE_ALREADY_ACCEPTED=1
ENV TZ=Etc/UTC
ENV PATH="${PATH}:/opt/st/stm32cubeide_${STM32CUBEIDE_VERSION}"
LABEL org.opencontainers.image.authors="Xander Hendriks <[email protected]>"
# Install dependencies
RUN apt-get -y update && \
apt-get -y install
COPY --from=base /tmp/stm32cubeide-installer.sh /tmp
# Install STM32 Cube IDE and delete installer
RUN chmod +x /tmp/stm32cubeide-installer.sh && \
/tmp/stm32cubeide-installer.sh && \
rm /tmp/stm32cubeide-installer.sh