We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39c5c68 commit f9cb694Copy full SHA for f9cb694
Dockerfile
@@ -60,9 +60,15 @@ RUN set -ex \
60
# Runs as mopidy user by default.
61
USER mopidy
62
63
+# Basic check,
64
+RUN /usr/bin/dumb-init /entrypoint.sh /usr/bin/mopidy --version
65
+
66
VOLUME ["/var/lib/mopidy/local", "/var/lib/mopidy/media"]
67
68
EXPOSE 6600 6680 5555/udp
69
70
ENTRYPOINT ["/usr/bin/dumb-init", "/entrypoint.sh"]
71
CMD ["/usr/bin/mopidy"]
72
73
+HEALTHCHECK --interval=5s --timeout=2s --retries=20 \
74
+ CMD curl --connect-timeout 5 --silent --show-error --fail http://localhost:6680/ || exit 1
docker-compose.test.yml
@@ -0,0 +1,3 @@
1
+sut:
2
+ build: .
3
+ command: sh -c '(mopidy &) && sleep 5 && curl --connect-timeout 5 --show-error --fail http://localhost:6680/'
0 commit comments