diff --git a/Dockerfile b/Dockerfile index e8f4062..10d4e62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10 +FROM python:3.10-slim # WORKDIR /code diff --git a/docker-compose.yaml b/docker-compose.yaml index 2163ec0..44271f1 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -22,7 +22,7 @@ services: - OFFICE_XBOT_VIEW_ID=${OFFICE_XBOT_VIEW_ID} - TZ=Asia/Shanghai healthcheck: - test: ["CMD", "curl", "-f", "http://127.0.0.1:8080/index"] + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/index')"] interval: 30s timeout: 10s retries: 3