修改文件 待测试可否使用国内源安装python扩展库
This commit is contained in:
parent
d1eee6cb63
commit
2b0797b69c
18
dockerfile
18
dockerfile
|
|
@ -9,19 +9,23 @@ ENV GO111MODULE=on \
|
|||
WORKDIR /builder
|
||||
|
||||
COPY . .
|
||||
&& COPY public/icons ./public/default_icons
|
||||
COPY public/icons ./public/default_icons
|
||||
RUN go build .
|
||||
|
||||
FROM python:3.8
|
||||
RUN pip3 install setuptools wheel -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
&& pip3 install beancount-2.3.4-cp38-cp38-linux_x86_64.whl
|
||||
&& pip3 install fava-1.18-py3-none-any.whl
|
||||
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
|
||||
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder ./builder/public ./public
|
||||
&& COPY --from=builder ./builder/config ./config
|
||||
&& COPY --from=builder ./builder/template ./template
|
||||
&& COPY --from=builder ./builder/beancount-gs* ./
|
||||
COPY --from=builder ./builder/config ./config
|
||||
COPY --from=builder ./builder/template ./template
|
||||
COPY --from=builder ./builder/beancount-gs* ./
|
||||
|
||||
EXPOSE 80
|
||||
Loading…
Reference in New Issue