Follow the instructions here
You can find here the Dockerfiles for the automated build process of LibrePhotos.