-
Notifications
You must be signed in to change notification settings - Fork 67
/
Dockerfile
32 lines (27 loc) · 842 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ubuntu:latest
# These commands copy your files into the specified directory in the image
# and set that as the working location
COPY . /usr/src/pitch-detection
WORKDIR /usr/src/pitch-detection
# Install dependencies from apt
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y \
git \
cmake \
gcc \
g++ \
libboost-dev \
libarmadillo-dev \
libmlpack-dev \
libgtest-dev \
libbenchmark-dev
# Get and install ffts library
RUN cd /usr/src \
&& git clone https://github.com/anthonix/ffts.git ffts-repo \
&& cd ffts-repo \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make install
# Build and install the pitch-detection library, as well as the tests and benchmarks
RUN cd /usr/src/pitch-detection && cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && cmake --build "build"
LABEL Name=pitch-detection Version=0.0.1