From d88d73af6c2431bbf78fe8a411b036db9cceb419 Mon Sep 17 00:00:00 2001 From: aaron <> Date: Fri, 21 Mar 2025 18:43:43 +0800 Subject: [PATCH] update --- Dockerfile | 4 +++- requirements.txt | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 85474c5..43a1dd6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,7 @@ RUN apt-get update \ build-essential \ default-libmysqlclient-dev \ pkg-config \ + curl \ && rm -rf /var/lib/apt/lists/* # 设置工作目录 @@ -33,10 +34,11 @@ WORKDIR /app # 复制项目文件 COPY requirements.txt . COPY app app/ +COPY *.py ./ # 安装Python依赖 RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt \ - && pip install uvicorn + && pip install -i https://mirrors.aliyun.com/pypi/simple/ uvicorn # 暴露端口 EXPOSE 8000 diff --git a/requirements.txt b/requirements.txt index bbb9e70..f12445a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,4 +9,5 @@ qcloud-python-sts==3.1.4 sqlalchemy==2.0.23 pymysql==1.1.0 cryptography==41.0.5 -alembic==1.12.1 \ No newline at end of file +alembic==1.12.1 +python-multipart==0.0.12 \ No newline at end of file