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 c6dc628 commit 17400fa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
18 changes: 13 additions & 5 deletions docker/Dockerfile.full
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,23 @@ RUN apt-get -y install \
# and compile times would forever, if it works at all.
# 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 \
# RUN if [ "$(uname -m)" = "armv7l" ] || [ "$(uname -m)" = "aarch64" ]; \
# then \
# apt-get -y install \
# python3-matplotlib \
# python3-numpy \
# python3-opencv \
# python3-pil \
# python3-skimage; \
# fi

# for consistency jsut always install it...
RUN apt-get -y install \
python3-matplotlib \
python3-numpy \
python3-opencv \
python3-pil \
python3-skimage; \
fi
python3-skimage

# python pip
RUN python3 -m pip install --upgrade pip
Expand Down
18 changes: 13 additions & 5 deletions docker/template/Dockerfile.full.header
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,23 @@ RUN apt-get -y install \
# and compile times would forever, if it works at all.
# 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 \
# RUN if [ "$(uname -m)" = "armv7l" ] || [ "$(uname -m)" = "aarch64" ]; \
# then \
# apt-get -y install \
# python3-matplotlib \
# python3-numpy \
# python3-opencv \
# python3-pil \
# python3-skimage; \
# fi

# for consistency jsut always install it...
RUN apt-get -y install \
python3-matplotlib \
python3-numpy \
python3-opencv \
python3-pil \
python3-skimage; \
fi
python3-skimage

# python pip
RUN python3 -m pip install --upgrade pip
Expand Down

0 comments on commit 17400fa

Please sign in to comment.