mirror of
https://github.com/esphome/esphome.git
synced 2024-11-12 10:16:02 +01:00
[docker] Fix docker build error fall through (#7021)
This commit is contained in:
parent
c013c3bf61
commit
fc3f806555
@ -39,8 +39,10 @@ RUN \
|
|||||||
python3-cffi=1.15.1-5 \
|
python3-cffi=1.15.1-5 \
|
||||||
libcairo2=1.16.0-7 \
|
libcairo2=1.16.0-7 \
|
||||||
libmagic1=1:5.44-3 \
|
libmagic1=1:5.44-3 \
|
||||||
patch=2.7.6-7; \
|
patch=2.7.6-7 \
|
||||||
if [ "$TARGETARCH$TARGETVARIANT" = "armv7" ]; then \
|
&& ( \
|
||||||
|
( \
|
||||||
|
[ "$TARGETARCH$TARGETVARIANT" = "armv7" ] && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
build-essential=12.9 \
|
build-essential=12.9 \
|
||||||
python3-dev=3.11.2-1+b1 \
|
python3-dev=3.11.2-1+b1 \
|
||||||
@ -53,9 +55,11 @@ RUN \
|
|||||||
libtiff6=4.5.0-6+deb12u1 \
|
libtiff6=4.5.0-6+deb12u1 \
|
||||||
cargo=0.66.0+ds1-1 \
|
cargo=0.66.0+ds1-1 \
|
||||||
pkg-config=1.8.1-1 \
|
pkg-config=1.8.1-1 \
|
||||||
gcc-arm-linux-gnueabihf=4:12.2.0-3; \
|
gcc-arm-linux-gnueabihf=4:12.2.0-3 \
|
||||||
fi; \
|
) \
|
||||||
rm -rf \
|
|| [ "$TARGETARCH$TARGETVARIANT" != "armv7" ] \
|
||||||
|
) \
|
||||||
|
&& rm -rf \
|
||||||
/tmp/* \
|
/tmp/* \
|
||||||
/var/{cache,log}/* \
|
/var/{cache,log}/* \
|
||||||
/var/lib/apt/lists/*
|
/var/lib/apt/lists/*
|
||||||
|
Loading…
Reference in New Issue
Block a user