mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM python:3.6-alpine
|
||||
|
||||
RUN apk add --no-cache \
|
||||
ffmpeg
|
||||
|
||||
ADD requirements.txt /app/
|
||||
RUN cd /app && pip install -U -r requirements.txt
|
||||
|
||||
ADD spotdl.py /app/
|
||||
ADD core/ /app/core
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENTRYPOINT ["python3", "spotdl.py", "-f", "."]
|
||||
11
README.md
11
README.md
@@ -70,6 +70,17 @@ Assuming you have Python 3 ([preferably v3.6 or above to stay away from Unicode
|
||||
|
||||
- Open `cmd` and type `pip install -U -r requirements.txt` to install dependencies. The same note about `pip` as for Debian, Ubuntu, Linux & Mac applies.
|
||||
|
||||
## Docker
|
||||
|
||||
Create the docker image and use the `-s` `-p` `-l` to download single song, prepare playlist and download list file.
|
||||
|
||||
```
|
||||
docker build -t ritiek/spotdl .
|
||||
docker run --rm -v $(pwd):/app ritiek/spotdl -s https://open.spotify.com/track/4eSv18SwAXoQJF6tPqFIyw
|
||||
docker run --rm -v $(pwd):/app ritiek/spotdl -p https://open.spotify.com/user/spotify/playlist/37i9dQZF1DX2iUghHXGIjj
|
||||
docker run --rm -v $(pwd):/app ritiek/spotdl -l acoustic-blues.txt
|
||||
```
|
||||
|
||||
## Instructions for Downloading Songs
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user