mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2024-11-26 09:53:17 +01:00
feat: Improve Docker setup
- Remember credentials between container starts - Use same uid/gid in container as on host
This commit is contained in:
parent
7f8572885a
commit
2c88a5cd56
@ -14,6 +14,5 @@ FROM base
|
|||||||
|
|
||||||
COPY --from=builder /install /usr/local
|
COPY --from=builder /install /usr/local
|
||||||
COPY zspotify /app
|
COPY zspotify /app
|
||||||
COPY *zs_config.json /
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENTRYPOINT ["/usr/local/bin/python", "__main__.py"]
|
ENTRYPOINT ["/usr/local/bin/python", "__main__.py"]
|
||||||
|
@ -65,7 +65,7 @@ Pull the official docker image (automatically updates):
|
|||||||
Or build the docker image yourself from the Dockerfile:
|
Or build the docker image yourself from the Dockerfile:
|
||||||
docker build -t zspotify .
|
docker build -t zspotify .
|
||||||
Create and run a container from the image:
|
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
|
### Google Colab
|
||||||
|
Loading…
Reference in New Issue
Block a user