Docker-node: node:8 libpng error: libpng12.so.0: cannot open shared object file: No such file or directory

Created on 3 Dec 2018  路  1Comment  路  Source: nodejs/docker-node

Since the latest release of node:8 our Gitlab CI builds have been failing due to a libpng error that is thrown for every .jpg image:

ERROR in ./app/domains/<.../image filename>.jpg
Module build failed: Error: /builds/<path>/node_modules/mozjpeg/vendor/cjpeg: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

    at Promise.all.then.arr (/builds/<path>/node_modules/execa/index.js:201:11)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
 @ ./app/domains/App/index.js 50:0-50
 @ ./app/app.js
 @ multi ./app/app.js

I read in #940 that stretch is now the default instead of jessie, which seems like it might be the cause.
Is there something that should be installed manually to fix this or is it unintended behavior?

Most helpful comment

Try switching to node:8-jessie. Looks like one of the dependencies requires the older libpng12.so.0 which is not available in stretch.

>All comments

Try switching to node:8-jessie. Looks like one of the dependencies requires the older libpng12.so.0 which is not available in stretch.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iamwillbar picture iamwillbar  路  4Comments

kmleow picture kmleow  路  5Comments

linux17kartik picture linux17kartik  路  4Comments

tigrus picture tigrus  路  4Comments

retrohacker picture retrohacker  路  3Comments