Merge pull request #169 from bcardiff/docker

Add docker image
This commit is contained in:
Ritiek Malhotra
2017-12-16 11:01:42 +05:30
committed by GitHub
2 changed files with 25 additions and 0 deletions

14
Dockerfile Normal file
View 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", "."]

View File

@@ -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