Compare commits

...
Author SHA1 Message Date
nkogut 746b42b72b Allow staging health checks more time under load
myfileagent-python-ci/pipeline/pr-main This commit looks good
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-07 22:28:21 +00:00
nkogut 935eaa8624 Merge pull request 'Assignment 8: audit coverage and release evidence' (#18) from assignment8/secure-delivery into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 2m11s
Reviewed-on: #18
Reviewed-by: glovely <glovely@stevens.edu>
2026-11-07 22:15:34 +00:00
+1 -1
View File
@@ -8,5 +8,5 @@ RUN python -m pip uninstall -y pip && rm -rf /usr/local/lib/python3.13/ensurepip
COPY app.py .
USER 10001:10001
EXPOSE 8000
HEALTHCHECK --interval=10s --timeout=3s --start-period=10s --retries=3 CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=2)"
HEALTHCHECK --interval=10s --timeout=10s --start-period=10s --retries=3 CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=8)"
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "1", "--worker-tmp-dir", "/tmp", "app:app"]