Created
January 18, 2020 14:17
-
-
Save MarkusKramer/1e3a1852b670ebdf55634f2cbb72a8a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:buster | |
RUN apt-get update -y && apt-get install -y git build-essential cmake libopenblas-dev openjdk-11-jre maven && apt-get clean | |
RUN mkdir /root/raspberrypi | |
ENV RPI_HOME=/root/raspberrypi | |
WORKDIR $RPI_HOME | |
RUN git clone --depth 1 git://github.com/raspberrypi/tools.git | |
ENV PATH=$PATH:$RPI_HOME/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin | |
WORKDIR /root | |
RUN git clone --depth 1 https://github.com/eclipse/deeplearning4j.git | |
RUN apt-get install -y vim clang-6.0 clang-7 g++-multilib | |
# workaround for OpenBLAS file location | |
RUN mkdir -p /opt/OpenBLAS/include | |
RUN mkdir -p /opt/OpenBLAS/lib | |
RUN cp -v /usr/include/x86_64-linux-gnu/cblas* /opt/OpenBLAS/include/ | |
RUN cp -v /usr/include/x86_64-linux-gnu/f77blas* /opt/OpenBLAS/include/ | |
RUN cp -v /usr/include/x86_64-linux-gnu/openblas* /opt/OpenBLAS/include/ | |
RUN cp -vP /usr/lib/x86_64-linux-gnu/libopenblas* /opt/OpenBLAS/lib/ | |
RUN cp -rPv /usr/lib/x86_64-linux-gnu/openblas /opt/OpenBLAS/lib/ | |
ENV OPENBLAS_PATH=/opt/OpenBLAS | |
WORKDIR /root/deeplearning4j/libnd4j | |
RUN ./buildnativeoperations.sh -o linux-armhf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment