|
| 1 | +FROM ubuntu:22.04 as builder |
| 2 | + |
| 3 | +RUN apt-get update && \ |
| 4 | + apt-get install --no-install-recommends -y curl wget lbzip2 python3 python3-pip && \ |
| 5 | + apt-get clean && \ |
| 6 | + rm -rf /var/lib/apt/lists/* |
| 7 | + |
| 8 | +WORKDIR /tmp |
| 9 | +RUN wget http://downloads.arduino.cc/tools/avr-gcc-7.3.0-atmel3.6.1-arduino5-x86_64-pc-linux-gnu.tar.bz2 && \ |
| 10 | + wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/RC2.1/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 && \ |
| 11 | + wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz |
| 12 | +WORKDIR /opt/compiler |
| 13 | +RUN tar -xf /tmp/avr-gcc-7.3.0-atmel3.6.1-arduino5-x86_64-pc-linux-gnu.tar.bz2 && \ |
| 14 | + tar -xf /tmp/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 && \ |
| 15 | + tar -xzf /tmp/xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz && \ |
| 16 | + rm -rf /tmp/* |
| 17 | + |
| 18 | +WORKDIR /tmp |
| 19 | +RUN wget http://ftp.debian.org/debian/pool/main/n/newlib/libnewlib-dev_3.1.0.20181231-1_all.deb && \ |
| 20 | + wget http://ftp.debian.org/debian/pool/main/n/newlib/libnewlib-arm-none-eabi_3.1.0.20181231-1_all.deb |
| 21 | + |
| 22 | +FROM ubuntu:22.04 |
| 23 | + |
| 24 | +ENV LANG de_DE.UTF-8 |
| 25 | +ENV LANGUAGE de_DE:de |
| 26 | +ENV LC_ALL de_DE.UTF-8 |
| 27 | + |
| 28 | +RUN apt-get update && \ |
| 29 | + apt-get install --no-install-recommends -y locales tzdata curl wget lbzip2 openjdk-8-jdk python3 python3-pip maven && \ |
| 30 | + ln -s /usr/bin/python3 /usr/bin/python && \ |
| 31 | + pip3 install esptool && \ |
| 32 | + locale-gen de_DE.UTF-8 && \ |
| 33 | + ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime && \ |
| 34 | + export DEBIAN_FRONTEND=noninteractive && \ |
| 35 | + dpkg-reconfigure --frontend noninteractive tzdata && \ |
| 36 | + apt-get install --no-install-recommends -y nbc libusb-0.1-4 srecord libssl-dev g++-arm-linux-gnueabi && \ |
| 37 | + apt-get clean && \ |
| 38 | + rm -rf /var/lib/apt/lists/* |
| 39 | + |
| 40 | +WORKDIR /tmp |
| 41 | +COPY --from=builder /tmp ./ |
| 42 | +RUN dpkg -i libnewlib-dev_3.1.0.20181231-1_all.deb libnewlib-arm-none-eabi_3.1.0.20181231-1_all.deb && \ |
| 43 | + rm libnewlib-dev_3.1.0.20181231-1_all.deb libnewlib-arm-none-eabi_3.1.0.20181231-1_all.deb |
| 44 | + |
| 45 | +WORKDIR /opt/compiler |
| 46 | +COPY --from=builder /opt/compiler ./ |
| 47 | +ENV PATH="${PATH}:/opt/compiler/avr/bin:/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/bin:/opt/compiler/xtensa-esp32-elf/bin" |
0 commit comments