dockerfile使用python3.10.2版本

安装whl模式的beancount扩展库,支持beancount账户科目二级和二级以下科目中英文

已修改        dockerfile
已添加        beancount-2.3.4-cp310-cp310-linux_x86_64.whl

Signed-off-by: RenLangMan <liangzai450@sina.com>
This commit is contained in:
RenLangMan 2022-02-16 15:29:40 +08:00 committed by 初意
parent b96d465a39
commit afc1725b09
2 changed files with 4 additions and 6 deletions

Binary file not shown.

View File

@ -12,15 +12,13 @@ COPY . .
COPY public/icons ./public/default_icons
RUN go build .
FROM python:3.8
FROM python:3.10.2
RUN python3 -m pip install -U pip setuptools wheel -i https://pypi.tuna.tsinghua.edu.cn/simple
COPY ./beancount-2.3.4-cp38-cp38-linux_x86_64.whl /tmp
RUN pip3 install /tmp/beancount-2.3.4-cp38-cp38-linux_x86_64.whl -i https://pypi.tuna.tsinghua.edu.cn/simple
# COPY ./fava-1.18-py3-none-any.whl /tmp
# RUN pip3 install /tmp/fava-1.18-py3-none-any.whl -i https://pypi.tuna.tsinghua.edu.cn/simple
COPY ./beancount-2.3.4-cp310-cp310-linux_x86_64.whl /tmp
COPY ./fava-1.18-py3-none-any.whl /tmp
RUN pip3 install /tmp/beancount-2.3.4-cp310-cp310-linux_x86_64.whl /tmp/fava-1.18-py3-none-any.whl -i https://pypi.tuna.tsinghua.edu.cn/simple
WORKDIR /app
COPY --from=builder ./builder/public ./public