在 docker headless 环境中使用 wps
该镜像的基础镜像为 debian:bullseye-slim
你可以将此镜像作为其他镜像的基础镜像
如果你想使用 wine msoffice2010,你可以试试 docker-msoffice2010-python,但经过我测试,这个不够稳定,经常性卡住,原因不明
FROM akkuman/headless-wps
RUN apt update && apt install libqt5xml5 python3 python3-pip
RUN python3 -m pip --no-cache-dir --no-compile install pywpsrpc
COPY example.py /root/example.py
CMD [ "python3", "example.py" ]
或者查看例子