Updated to correct config and cache location

and created the directories ahead of time, so that when volumes are created, they will have the correct permissions
This commit is contained in:
Tom 2023-03-25 18:59:48 +03:00 committed by GitHub
parent f57616b10e
commit 995c2f257f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,8 @@
# -v /tmp/.X11-unix:/tmp/.X11-unix \
# -e DISPLAY=unix$DISPLAY \
# --device /dev/snd:/dev/snd \
# -v $HOME/.spotify/config:/home/spotify/.config/spotify \
# -v $HOME/.spotify/cache:/home/spotify/spotify \
# -v $HOME/.config/spotify:/home/spotify/.config/spotify \
# -v $HOME/.cache/spotify:/home/spotify/.cache/spotify \
# --name spotify \
# jess/spotify
#
@ -35,6 +35,7 @@ RUN apt-get update && apt-get install -y \
ENV HOME /home/spotify
RUN useradd --create-home --home-dir $HOME spotify \
&& gpasswd -a spotify audio \
&& mkdir $HOME/.config $HOME/.cache \
&& chown -R spotify:spotify $HOME
WORKDIR $HOME