Photostructure immediately exiting under docker on older Xeon (avx lbvips issue)

Hi all, I spent a lot of time chasing this one down so perhaps it’d help someone down the road:

I have a old MacPro 1,1 as a home server and it’s processor is apparently lacking support for instructions needed by one of the Photostructure dependent npm packages, sharp. This results in photostructure exiting immediately with code 0 and an error in /var/log/syslog about illegal instruction in lbvips library.

Tto fix this, I created an overlay docker image with libvips rebuilt, referred from docker-compose via:

    #image: photostructure/server:stable
    build:
      context: .
      dockerfile: Dockerfile

Dockerfile is attached:

Dockerfile.zip (658 Bytes)

1 Like

Welcome to PhotoStructure, @sergem1 , and thanks for sharing the workaround!