-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
60 lines (50 loc) · 1.48 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM ubuntu:14.04
MAINTAINER John Vinyard <[email protected]>
RUN apt-get update --fix-missing && apt-get install -y \
g++ \
autoconf \
autogen \
automake \
libtool \
pkg-config \
libogg0 \
libogg-dev \
libvorbis0a \
libvorbis-dev \
libsamplerate0 \
libsamplerate0-dev \
libx11-dev \
python-dev \
libfreetype6-dev \
libpng12-dev \
libffi-dev \
python-pip \
wget \
bzip2 \
ca-certificates \
libglib2.0-0 \
libxext6 \
libsm6 \
libxrender1 \
git \
mercurial \
subversion
RUN wget http://downloads.xiph.org/releases/flac/flac-1.3.1.tar.xz \
&& tar xf flac-1.3.1.tar.xz \
&& cd flac-1.3.1 \
&& ./configure --libdir=/usr/lib/x86_64-linux-gnu && make && make install \
&& cd ..
RUN wget http://www.mega-nerd.com/tmp/libsndfile-1.0.26pre5.tar.gz \
&& tar -xzf libsndfile-1.0.26pre5.tar.gz \
&& cd libsndfile-1.0.26pre5 \
&& ./configure --libdir=/usr/lib/x86_64-linux-gnu && make && make install \
&& cd ..
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh \
&& wget https://repo.continuum.io/miniconda/Miniconda3-4.3.21-Linux-x86_64.sh \
&& /bin/bash /Miniconda3-4.3.21-Linux-x86_64.sh -b -p /opt/conda \
&& rm /Miniconda3-4.3.21-Linux-x86_64.sh
ENV PATH /opt/conda/bin:$PATH
RUN conda install -y -c pytorch numpy=1.15.3 scipy=1.2.1 pytorch=0.4
RUN pip install zounds
EXPOSE 9999
CMD zounds-quickstart --datadir data --port 9999