forked from tmerten/spotify-ripper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (32 loc) · 1.61 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
FROM ubuntu:xenial
RUN mkdir /ripper && mkdir /ripper/source-code
RUN apt update
RUN apt upgrade -y
RUN apt install software-properties-common python-software-properties zsh -y --no-install-recommends
RUN apt-add-repository multiverse -y
RUN apt update -y
RUN apt install build-essential automake autoconf wget -y --no-install-recommends
RUN apt install lame libffi-dev -y --no-install-recommends
#libssl-dev flac libav-tools faac libfdk-aac-dev vorbis-tools opus-tools \
# -y --no-install-recommends
RUN apt install python-dev python-pip -y --no-install-recommends
#RUN wget https://github.com/nu774/fdkaac/archive/v0.6.2.tar.gz && tar xvf v0.6.2.tar.gz
#RUN cd fdkaac-0.6.2 && autoreconf -i && ./configure && make install
# Install libspotify
RUN wget https://developer.spotify.com/download/libspotify/libspotify-12.1.51-Linux-x86_64-release.tar.gz && tar xvf libspotify-12.1.51-Linux-x86_64-release.tar.gz
RUN cd libspotify-12.1.51-Linux-x86_64-release/ && make install prefix=/usr/local
WORKDIR /ripper/source-code
RUN pip install setuptools wheel
COPY requirements.txt /ripper/source-code
RUN pip install -r requirements.txt
COPY spotify_ripper /ripper/source-code/spotify_ripper
COPY setup.py /ripper/source-code/
COPY README.rst /ripper/source-code/
#COPY docker_config/* /ripper/source-code/
RUN pip install .
ENV pass=Password
ENV PYTHONIOENCODING utf-8
RUN locale-gen en_GB.UTF-8
ENV LANG='en_GB.UTF-8' LANGUAGE='en_GB:en' LC_ALL='en_GB.UTF-8'
ENTRYPOINT spotify-ripper -S /ripper/config/ -k /ripper/config/spotify_appkey.key -u morgaroth -p ${pass} spotify:user:morgaroth:playlist:4Usjw07BWhqCgRkMiFQmb7
#ENTRYPOINT zsh