dec0dOS / zero-ui

ZeroUI - ZeroTier Controller Web UI - is a web user interface for a self-hosted ZeroTier network controller.
GNU General Public License v3.0
912 stars 146 forks source link

Fix docker image build failure after node:lts-alpine changed to 18. #131

Closed gadamo closed 1 year ago

gadamo commented 1 year ago

Fix image build error. While there, also updated zerotier to latest minor version.

Pull Request type

Please check the type of change your PR introduces:

What is the current behavior?

Base image for building the frontend is referenced with its tag on the Dockerfile (FROM node:lts-alpine). The tag has been recently changed, and now points to version 18 of nodejs.

Attempting to build with new lts (v.18), results in an error when building the frontend:

[frontend-build 8/8] RUN yarn build:

0 3.553 Creating an optimized production build...

0 4.139 Error: error:0308010C:digital envelope routines::unsupported

Issue Number: N/A

What is the new behavior?

Adding the ENV var has fixed the build issue, and the container image is now produced without errors.

Does this introduce a breaking change?

dec0dOS commented 1 year ago

Hello, @gadamo!

Thanks for your PR!