This commit is contained in:
aaron 2025-03-21 19:00:35 +08:00
parent d88d73af6c
commit 49b54bba43
2 changed files with 2 additions and 1 deletions

View File

View File

@ -35,10 +35,11 @@ WORKDIR /app
COPY requirements.txt . COPY requirements.txt .
COPY app app/ COPY app app/
COPY *.py ./ COPY *.py ./
COPY .env* ./
# 安装Python依赖 # 安装Python依赖
RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt \ RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt \
&& pip install -i https://mirrors.aliyun.com/pypi/simple/ uvicorn && pip install -i https://mirrors.aliyun.com/pypi/simple/ uvicorn python-multipart python-dotenv
# 暴露端口 # 暴露端口
EXPOSE 8000 EXPOSE 8000