From 90d6524941330411d9cf896e5b30ab4d45cdfa63 Mon Sep 17 00:00:00 2001 From: "mula.liu" Date: Mon, 19 Jan 2026 21:43:31 +0800 Subject: [PATCH] Fix error --- backend/Dockerfile | 5 +++-- docker-compose.yml | 3 --- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index be973f2..762e769 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,4 +1,4 @@ -# 使用Python 3.9.6基础镜像 +# 使用Python 3.12基础镜像 FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python:3.12-slim # 设置工作目录 @@ -18,6 +18,7 @@ COPY requirements.txt . # 安装系统依赖、Python依赖,然后清理(一个RUN命令减少层大小) RUN apt-get update && apt-get install -y \ gcc \ + curl \ default-libmysqlclient-dev \ pkg-config \ && pip install --index-url https://mirrors.aliyun.com/pypi/simple --no-cache-dir -r requirements.txt \ @@ -33,4 +34,4 @@ COPY . . EXPOSE 8000 # 启动命令 -CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file +CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] diff --git a/docker-compose.yml b/docker-compose.yml index 38d0d06..2b1cadd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -105,9 +105,6 @@ services: healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 30s - timeout: 10s - retries: 3 - start_period: 40s networks: - imeeting-network