Skip to content

Commit d4a2b36

Browse files
authored
Downgrade sqlite-libs on docker image (home-assistant#55591)
1 parent bfd799d commit d4a2b36

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Dockerfile

+15
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@ RUN \
1616
-e ./homeassistant \
1717
&& python3 -m compileall homeassistant/homeassistant
1818

19+
# Fix Bug with Alpine 3.14 and sqlite 3.35
20+
# https://gitlab.alpinelinux.org/alpine/aports/-/issues/12524
21+
ARG BUILD_ARCH
22+
RUN \
23+
if [ "${BUILD_ARCH}" = "amd64" ]; then \
24+
export APK_ARCH=x86_64; \
25+
elif [ "${BUILD_ARCH}" = "i386" ]; then \
26+
export APK_ARCH=x86; \
27+
else \
28+
export APK_ARCH=${BUILD_ARCH}; \
29+
fi \
30+
&& curl -O http://dl-cdn.alpinelinux.org/alpine/v3.13/main/${APK_ARCH}/sqlite-libs-3.34.1-r0.apk \
31+
&& apk add --no-cache sqlite-libs-3.34.1-r0.apk \
32+
&& rm -f sqlite-libs-3.34.1-r0.apk
33+
1934
# Home Assistant S6-Overlay
2035
COPY rootfs /
2136

0 commit comments

Comments
 (0)