-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.build
30 lines (21 loc) · 1 KB
/
Dockerfile.build
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
# actual image
FROM debian:trixie
# copy toolchains
WORKDIR /opt/toolchaintemp
# system dependencies
RUN apt-get update && apt-get install -y \
cmake ninja-build git \
curl wget \
libncurses-dev build-essential flex bison gperf \
gcc make castxml tar xz-utils gcc-xtensa-lx106 \
python3 python3-pip python-is-python3 quilt
ADD https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi.tar.xz arm.tar.xz
RUN tar -xf arm.tar.xz -C /usr/local --strip-components=1 arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi
ADD http://static.mm12.xyz/newlib-libstdc++-xtensa-lx106-elf-13.2.0.tar.xz xtensa.tar.xz
RUN tar -xf xtensa.tar.xz -C /
WORKDIR /opt/pydeps
# copy python deps
ADD requirements.txt py-requirements.txt
ADD vendor/ESP8266_RTOS_SDK/requirements.txt py-requirements2.txt
# python dependencies
RUN sed -i 's/>=2.1.4,<35/>=41.0/' py-requirements2.txt && python -m pip install --break-system-packages -r py-requirements2.txt -r py-requirements.txt