From 13fc8fec8257968d65ec8e9b5c290524abe27309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E9=9B=A8?= Date: Wed, 27 Aug 2025 15:44:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 +++--- requirements.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index df56d21..1b38686 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM docker-0.unsee.tech/python:3.12-slim +FROM docker.m.daocloud.io/python:3.12-slim WORKDIR /app COPY . /app ENV TZ=Asia/Shanghai \ LANG=C.UTF-8 -RUN rm -rf logs .git .idea .venv && apt-get update && pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ \ +RUN rm -rf logs .git .idea .venv && apt-get update && apt-get install -y vim curl && pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ \ && pip install yonyouopenapisdk-1.1.1-py3-none-any.whl -i https://mirrors.aliyun.com/pypi/simple/ RUN mkdir -p /app/logs && touch /app/logs/yj_room_agent.log && rm -rf *.whl EXPOSE 9000 -CMD ["hypercorn","-b","0.0.0.0:9000","yj_room_agent.asgi:application"] +CMD ["gunicorn","yj_room_agent.wsgi:application","-b","0.0.0.0:9000","-t","12000","--threads","50"] diff --git a/requirements.txt b/requirements.txt index ba46b5a..f27ab24 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,5 +3,5 @@ requests==2.32.3 python-decouple==3.8 APScheduler==3.11.0 pydantic-ai==0.3.6 -Hypercorn==0.17.3 +gunicorn==23.0.0 redis==6.2.0 \ No newline at end of file