-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Dockerfile
42 lines (31 loc) · 722 Bytes
/
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 python:3-alpine
LABEL maintainer="xnetcat (Jakub)"
# Install dependencies
RUN apk add --no-cache \
ca-certificates \
ffmpeg \
openssl \
aria2 \
g++ \
git \
py3-cffi \
libffi-dev \
zlib-dev
# Install poetry and update pip/wheel
RUN pip install --upgrade pip poetry wheel spotipy
# Copy requirements files
COPY poetry.lock pyproject.toml /
# Install spotdl requirements
RUN poetry install
# Add source code files to WORKDIR
ADD . .
# Install spotdl itself
RUN poetry install
# Create music directory
RUN mkdir /music
# Create a volume for the output directory
VOLUME /music
# Change CWD to /music
WORKDIR /music
# Entrypoint command
ENTRYPOINT ["poetry", "run", "spotdl"]