-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (19 loc) · 932 Bytes
/
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
ARG IMAGE=ubuntu:22.04
FROM ${IMAGE} AS base
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/London
RUN apt-get -y update
RUN apt-get -y install zip
COPY en.st-stm32cubeide_1.16.1_22882_20240916_0822_amd64.deb_bundle.sh.zip /tmp/stm32cubeide-installer.sh.zip
RUN unzip -p /tmp/stm32cubeide-installer.sh.zip > /tmp/stm32cubeide-installer.sh && rm /tmp/stm32cubeide-installer.sh.zip
FROM ${IMAGE}
ENV STM32CUBEIDE_VERSION=1.16.1
ENV DEBIAN_FRONTEND=noninteractive
ENV LICENSE_ALREADY_ACCEPTED=1
ENV TZ=Etc/London
ENV PATH="${PATH}:/opt/st/stm32cubeide_${STM32CUBEIDE_VERSION}"
LABEL org.opencontainers.image.authors="MCMattia"
LABEL org.opencontainers.image.source=https://github.com/MCMattia/stm32cubeide-docker
RUN apt-get -y update && apt-get -y install
COPY --from=base /tmp/stm32cubeide-installer.sh /tmp
RUN chmod +x /tmp/stm32cubeide-installer.sh && /tmp/stm32cubeide-installer.sh && rm /tmp/stm32cubeide-installer.sh