win2win commited on
Commit
5cc11cb
·
verified ·
1 Parent(s): e5e59bf

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +4 -1
dockerfile CHANGED
@@ -14,4 +14,7 @@ COPY . .
14
  # Install Python deps
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
- CMD ["python", "app.py"]
 
 
 
 
14
  # Install Python deps
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
+ CMD ["python", "-c", "import os; os.system('ulimit -v 2000000'); python app.py"]
18
+
19
+ HEALTHCHECK --interval=30s --timeout=3s \
20
+ CMD curl -f http://localhost:8000/ready || exit 1