Эх сурвалжийг харах

Add health check to Dockerfile

kirkleon 4 жил өмнө
parent
commit
9fab0f3a94
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      Dockerfile

+ 2 - 0
Dockerfile

@@ -1,5 +1,7 @@
 FROM python:3.9
 
+HEALTCHECK CMD curl --fail http://localhost:5000/ || exit 1
+
 RUN pip install --upgrade pip
 
 ENV ROLLBOT_LIB_DIR /rollbot-lib/