-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 852 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 852 Bytes
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
FROM ubuntu
RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python2.7-dev python-setuptools libsndfile1-dev git gcc build-essential alsa-base flac vorbis-tools python-numpy python-scipy python-matplotlib python-sklearn libsamplerate0-dev libasound2-dev cython lame libboost-program-options-dev
# Install pip
RUN easy_install pip
# wav2json
RUN git clone https://github.com/beschulz/wav2json.git
ADD wav2json.patch /wav2json.patch
RUN patch wav2json/build/Makefile < wav2json.patch
RUN cd wav2json/build && make all && cd ../..
ENV PATH /wav2json/bin/Linux/:$PATH
# Install python module requirements
ADD requirements.txt /src/requirements.txt
RUN cd /src; pip install -r requirements.txt
# expose
EXPOSE 5000
# bundle app source
#ADD . /src
# run
#CMD ["python", "/src/app.py"]
WORKDIR /src