Skip to content

Commit 1a0e29c

Browse files
reduce health check interval, dump github context to check for possible solutions to #56
1 parent a9d827d commit 1a0e29c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828
timeout-minutes: 5
2929

3030
steps:
31+
- name: Dump GitHub context
32+
env:
33+
GITHUB_CONTEXT: ${{ toJson(github) }}
34+
run: echo "$GITHUB_CONTEXT"
35+
3136
- name: Checkout 🛎️
3237
uses: actions/checkout@v3
3338

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ENV PATH=/root/.local/bin:$PATH
3030
COPY ./app /app
3131

3232
EXPOSE 80
33-
HEALTHCHECK --interval=5m --timeout=10s CMD curl --fail http://localhost:80/ || exit 1
33+
HEALTHCHECK --interval=1m --timeout=5s CMD curl --fail http://localhost:80/ || exit 1
3434

3535
# This could be python3 app/main.py, a choice was made against it to keep dev and prod ports different.
3636
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]

0 commit comments

Comments
 (0)