Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Docker build for CUDA version. #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile-GPU
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Install NVIDIA GPU image
FROM nvidia/cuda:9.2-cudnn7-devel
FROM nvidia/cuda:9.2-cudnn7-devel-ubuntu18.04

# Install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends python3-dev python3-pip python3-nose python3-setuptools libblas-dev liblapack-dev cmake ffmpeg gfortran git && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y --no-install-recommends python3-dev python3-pip python3-nose python3-setuptools libblas-dev liblapack-dev cmake ffmpeg gfortran git llvm-8-dev && rm -rf /var/lib/apt/lists/*

# Install required Python packages
RUN pip3 install --upgrade pip
RUN pip3 install numpy scipy cython librosa future
RUN LLVM_CONFIG=llvm-config-8 pip3 install numpy scipy cython librosa future

# Obtain libgpuarray & pygpu.
RUN git clone https://github.com/Theano/libgpuarray.git
Expand Down Expand Up @@ -44,4 +44,4 @@ COPY . ./
ADD https://tuc.cloud/index.php/s/m9smX4FkqmJaxLW/download ./model/BirdNET_Soundscape_Model.pkl

# Add entry point to run the script
ENTRYPOINT [ "python3", "./analyze.py" ]
ENTRYPOINT [ "python3", "./analyze.py" ]