In order to install LibrePythonista in linuxserver/libreoffice docker (Alpine) image py3-pip must be installed.
Create a docker and a docker-compose.yml files and place them in the same folder.
Use the contents from the examples below.
Note that volumes are optional. If you want to follow this yml file on Linux or Mac then create a folder in your home folder named vm_shared and that folder will be shared with you docker image.
volumes:
- ~/vm_shared:/vm_shared # Mount ~/vm_shared to /vm_shared inside the container