diff --git a/.env b/.env.dev similarity index 100% rename from .env rename to .env.dev diff --git a/Dockerfile b/Dockerfile index 43a1dd6..74b53c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,10 +35,11 @@ WORKDIR /app COPY requirements.txt . COPY app app/ COPY *.py ./ +COPY .env* ./ # 安装Python依赖 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