Merge pull request #192 from jkemming/feat/docker-improvements

feat: Improve Docker setup
This commit is contained in:
Logykk 2021-11-18 11:48:38 +13:00 committed by GitHub
commit 132e740201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -14,6 +14,5 @@ FROM base
COPY --from=builder /install /usr/local
COPY zspotify /app
COPY *zs_config.json /
WORKDIR /app
ENTRYPOINT ["/usr/local/bin/python", "__main__.py"]

View File

@ -65,7 +65,7 @@ Pull the official docker image (automatically updates):
Or build the docker image yourself from the Dockerfile:
docker build -t zspotify .
Create and run a container from the image:
docker run --rm -v "$PWD/ZSpotify Music:/ZSpotify Music" -v "$PWD/ZSpotify Podcasts:/ZSpotify Podcasts" -it zspotify
docker run --rm -u $(id -u):$(id -g) -v "$PWD/zspotify:/app" -v "$PWD/zs_config.json:/zs_config.json" -v "$PWD/ZSpotify Music:/ZSpotify Music" -v "$PWD/ZSpotify Podcasts:/ZSpotify Podcasts" -it zspotify
```
### Google Colab