From 2c88a5cd564bcf1c5a5ab0d1aa1bb03427c77c14 Mon Sep 17 00:00:00 2001 From: jkemming Date: Wed, 17 Nov 2021 21:36:35 +0100 Subject: [PATCH] feat: Improve Docker setup - Remember credentials between container starts - Use same uid/gid in container as on host --- Dockerfile | 1 - README.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 40838a4..0fa52de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index 0dbb7fe..aed534e 100644 --- a/README.md +++ b/README.md @@ -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