docekr-compose.yml

version: '3.8'
services:
  libreoffice:
    ....
    working_dir: /jars  #指定工作目录     
    command: ['java','-jar','office_test.jar']