Make Docker image work for 32-bit ARMv7
This should allow for a working image if built manually, but does not add it to the multi-arch package built for this project's package repository. As discussed in issue #72, needed to work around some shared library issue between the binary wheel for one of the prerequisites published to PyPI and the base Docker image.
This commit is contained in:
parent
8cbab00517
commit
ad36e08451
1 changed files with 7 additions and 1 deletions
|
@ -3,8 +3,14 @@ LABEL maintainer="neurocis <neurocis@neurocis.me>"
|
||||||
|
|
||||||
RUN true && \
|
RUN true && \
|
||||||
\
|
\
|
||||||
|
ARCH=`uname -m`; \
|
||||||
|
if [ "$ARCH" = "armv7l" ]; then \
|
||||||
|
NOBIN_OPT="--no-binary=grpcio"; \
|
||||||
|
else \
|
||||||
|
NOBIN_OPT=""; \
|
||||||
|
fi; \
|
||||||
# Install python prerequisites
|
# Install python prerequisites
|
||||||
pip3 install \
|
pip3 install --no-cache-dir $NOBIN_OPT \
|
||||||
grpcio==1.50.0 six==1.16.0 \
|
grpcio==1.50.0 six==1.16.0 \
|
||||||
influxdb==5.3.1 certifi==2022.9.24 charset-normalizer==2.1.1 idna==3.4 \
|
influxdb==5.3.1 certifi==2022.9.24 charset-normalizer==2.1.1 idna==3.4 \
|
||||||
msgpack==1.0.4 python-dateutil==2.8.2 pytz==2022.6 requests==2.28.1 \
|
msgpack==1.0.4 python-dateutil==2.8.2 pytz==2022.6 requests==2.28.1 \
|
||||||
|
|
Loading…
Reference in a new issue