-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
42 lines (37 loc) · 1.06 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
FROM debian:buster
ENV DEBIAN_FRONTEND=noninteractive
# prereqs
RUN sed -i -e's/ main/ main contrib non-free/g' /etc/apt/sources.list && \
apt-get -qq update && \
apt-get -qq upgrade && \
apt-get -qq install -y \
build-essential \
libssl-dev \
libffi-dev \
wget \
gnupg \
git \
lame \
flac \
python3 \
python3-dev \
python3-pip && \
wget -q -O - https://apt.mopidy.com/mopidy.gpg | apt-key add - && \
wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/buster.list && \
apt-get -qq update && \
apt-get -qq install -y \
libspotify12 libspotify-dev && \
pip3 install --upgrade git+https://github.com/putty182/spotify-ripper && \
apt-get remove --autoremove --purge -y \
gcc \
libspotify-dev \
git && \
apt-get -qq clean
# the scripts
COPY root/start.sh /start.sh
# make some volumes
RUN mkdir /config /music
VOLUME ["/config", "/music"]
WORKDIR /music
EXPOSE 3000/tcp
ENTRYPOINT ["/start.sh"]