Skip to content

Commit 37d4f74

Browse files
committed
Fix docker healthcheck
1 parent 7765b53 commit 37d4f74

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ COPY --from=build-stage /app/frontend/dist /app/static
2525
EXPOSE 8000
2626

2727
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
28-
CMD python3 -c 'import urllib.request; \
29-
try: \
30-
res = urllib.request.urlopen("http://localhost:8000/api/version", timeout=3); \
31-
exit(0) if res.status == 200 else exit(1) \
32-
except: \
33-
exit(1)'
28+
CMD python3 -c 'import urllib.request; urllib.request.urlopen("http://localhost:8000/api/version", timeout=3)'
3429

3530
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)