Spaces:
Runtime error
Runtime error
Update dockerfile
Browse files- 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
|