Using crude but predictable file to detect when running in docker, #489
This commit is contained in:
@ -63,7 +63,8 @@ ENV HOME=/var/lib/mopidy
|
||||
RUN set -ex \
|
||||
&& usermod -G audio,sudo mopidy \
|
||||
&& chown mopidy:audio -R $HOME /entrypoint.sh /iris \
|
||||
&& chmod go+rwx -R $HOME /entrypoint.sh /iris
|
||||
&& chmod go+rwx -R $HOME /entrypoint.sh /iris \
|
||||
&& echo "1" >> $HOME/IS_CONTAINER
|
||||
|
||||
# Runs as mopidy user by default.
|
||||
USER mopidy:audio
|
||||
|
||||
Reference in New Issue
Block a user