-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
42 lines (30 loc) · 1.31 KB
/
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
33
34
35
36
37
38
39
40
41
42
# pyCrossfade runs on python3.7
# and only debian buster supports it
FROM debian:buster
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /app
# install essentia dependencies: https://essentia.upf.edu/installing.html
RUN apt-get update -y \
&& apt-get install -y build-essential libeigen3-dev libyaml-dev libfftw3-dev libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libsamplerate0-dev libtag1-dev libchromaprint-dev \
&& apt-get autoremove -y
RUN apt-get install -y python3.7-dev
RUN apt-get install -y python3-pip
# install pyCrossfade dependencies
RUN apt-get install -y libsndfile1 rubberband-cli ffmpeg \
&& apt-get install -y libffi6 libffi-dev \
&& apt-get autoremove -y
# i know this is ugly but its the only configuration that works
RUN pip3 install Cython==0.29.36 setuptools==50.1.0
RUN pip3 install numpy==1.19.0
RUN pip3 install pyrubberband==0.4.0
RUN pip3 install essentia==2.1b6.dev374
RUN pip3 install yodel==0.3.0
RUN pip3 install typer==0.14.0
RUN pip3 install mido==1.3.3
RUN pip3 install scipy==1.6.3
RUN pip3 install madmom==0.16.1 --no-dependencies
# Copy the current directory contents into the container at /app
COPY pycrossfade/ pycrossfade/
# Run pycrossfade/cli.py when the container launches
ENTRYPOINT ["python3", "pycrossfade/cli.py"]
# CMD ["sleep", "infinity"]