Skip to content

Commit

Permalink
docker: arm fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 25, 2023
1 parent f974653 commit c6dc628
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docker/Dockerfile.full
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ RUN apt-get -y install \

# armv7l does not have wheels for any of these
# and compile times would forever, if it works at all.
RUN if [ "$(uname -m)" = "armv7l" ]; \
# furthermore, it's possible to run 32bit docker on 64bit arm,
# which causes all sorts of weird behavior.
RUN if [ "$(uname -m)" = "armv7l" ] || [ "$(uname -m)" = "aarch64" ]; \
then \
apt-get -y install \
python3-matplotlib \
Expand Down
4 changes: 3 additions & 1 deletion docker/template/Dockerfile.full.header
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ RUN apt-get -y install \

# armv7l does not have wheels for any of these
# and compile times would forever, if it works at all.
RUN if [ "$(uname -m)" = "armv7l" ]; \
# furthermore, it's possible to run 32bit docker on 64bit arm,
# which causes all sorts of weird behavior.
RUN if [ "$(uname -m)" = "armv7l" ] || [ "$(uname -m)" = "aarch64" ]; \
then \
apt-get -y install \
python3-matplotlib \
Expand Down

0 comments on commit c6dc628

Please sign in to comment.