- 修改数据库文件路径为 /data/verify.db - 在 docker-compose.yml 中添加数据卷映射 - 更新 Dockerfile,包含代码克隆、依赖安装和启动命令
10 lines
289 B
Plaintext
10 lines
289 B
Plaintext
FROM python:latest
|
|
|
|
WORKDIR /app
|
|
RUN git clone http://192.168.1.68:8418/jayus/VerifVATInvoice.git .
|
|
COPY . .
|
|
RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple
|
|
|
|
RUN python setup.py install
|
|
WORKDIR /app/alibabacloud_sample
|
|
CMD ["python", "main.py"] |