Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ COPY confluent_cloud_mock_api.py ./

RUN pip install --no-cache-dir flask

RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*

EXPOSE 8888

HEALTHCHECK --interval=10s --timeout=5s --start-period=5s --retries=3 \
CMD python -c "import requests; requests.get('http://localhost:8888/health')"
CMD curl -f http://localhost:8888/health || exit 1

CMD ["python", "confluent_cloud_mock_api.py"]
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
- FLASK_ENV=production
- PORT=8888
healthcheck:
test: ["CMD-SHELL", "python -c 'import requests; requests.get(\"http://localhost:8888/health\")'"]
test: ["CMD-SHELL", "curl -f http://localhost:8888/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
Expand Down
Loading