This commit is contained in:
parent
f393df0d05
commit
5451fd7aac
|
|
@ -13,12 +13,6 @@ RUN apt-get update && apt-get install -y \
|
||||||
# 设置工作目录
|
# 设置工作目录
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# 在安装依赖前升级 pip
|
|
||||||
RUN pip install --upgrade pip
|
|
||||||
|
|
||||||
# 先单独安装 numpy
|
|
||||||
RUN pip install --no-cache-dir "numpy>=1.21.0"
|
|
||||||
|
|
||||||
# 复制依赖文件并安装
|
# 复制依赖文件并安装
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,13 @@
|
||||||
pandas==1.5.3
|
#pandas==1.5.3
|
||||||
|
#dbfread==2.0.7
|
||||||
|
#psycopg2-binary==2.9.6
|
||||||
|
#python-dotenv==1.0.0
|
||||||
|
#openpyxl>=3.1.0
|
||||||
|
|
||||||
|
# requirements.txt
|
||||||
|
pandas==1.3.5
|
||||||
|
numpy==1.20.3
|
||||||
dbfread==2.0.7
|
dbfread==2.0.7
|
||||||
psycopg2-binary==2.9.6
|
psycopg2-binary==2.9.6
|
||||||
python-dotenv==1.0.0
|
python-dotenv==1.0.0
|
||||||
openpyxl>=3.1.0
|
openpyxl==3.0.10
|
||||||
Loading…
Reference in New Issue
Block a user