mifi / editly

Slick, declarative command line video editing & API
MIT License
4.64k stars 295 forks source link

Update Dockerfile #278

Open djacobs7 opened 2 months ago

djacobs7 commented 2 months ago

Dockerfile did not work out of the box. These were necessary changes to get editly running in Docker as far as I could tell. It's quite possible I was doing something wrong, but I thought it might save some you or someone else the trouble of having to debug this again

ERROR 1 First error is that you see this when you try to run editly:

ERROR Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

Fix: Put in a minimum NODE_VERSION ( as documented here: https://stackoverflow.com/questions/69665780/error-err-unsupported-esm-url-scheme-only-file-and-data-urls-are-supported-by )

Error 2

internal/modules/cjs/loader.js:1250

return process.dlopen(module, path.toNamespacedPath(filename));

Fix: