Adds healthcheck to LWUI Dockerfile
[osm/devops.git] / docker / light-ui / Dockerfile
index 29cbb74..bfcc9e2 100644 (file)
@@ -35,4 +35,7 @@ RUN python manage.py collectstatic --noinput
 
 EXPOSE 80
 
+HEALTHCHECK --start-period=130s --interval=10s --timeout=5s --retries=12 \
+  CMD curl --silent --fail localhost:80 || exit 1
+
 CMD ["supervisord", "-n"]