Using crude but predictable file to detect when running in docker, #489

This commit is contained in:
James Barnsley
2020-02-10 07:15:22 +13:00
parent 54c55f7569
commit 15943369d4
2 changed files with 3 additions and 2 deletions

View File

@ -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