From d52cf1ca63a088ddfa1f0259924117af718081e2 Mon Sep 17 00:00:00 2001 From: George Adamopoulos Date: Thu, 22 Dec 2022 22:23:50 +0200 Subject: [PATCH 1/2] Fix docker image build failure after node:lts-alpine changed to 18. 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: Adding the ENV var has fixed the build issue, and the container image is now produced without errors. --- docker/zero-ui/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/zero-ui/Dockerfile b/docker/zero-ui/Dockerfile index eefa91e..d35388a 100644 --- a/docker/zero-ui/Dockerfile +++ b/docker/zero-ui/Dockerfile @@ -2,6 +2,7 @@ FROM --platform=$BUILDPLATFORM node:lts-alpine as frontend-build ENV INLINE_RUNTIME_CHUNK=false ENV GENERATE_SOURCEMAP=false +ENV NODE_OPTIONS=--openssl-legacy-provider WORKDIR /app/frontend COPY yarn.lock .yarnrc.yml ./ From 44d0f888c3a2439eccf0ce4cd3f3fa762a6b54f1 Mon Sep 17 00:00:00 2001 From: George Adamopoulos Date: Thu, 22 Dec 2022 22:32:54 +0200 Subject: [PATCH 2/2] Bump zerotier container to version 1.10.2 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 15d642d..ceac85a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: "3" services: zerotier: - image: zyclonite/zerotier:1.10.1 + image: zyclonite/zerotier:1.10.2 container_name: zu-controller restart: unless-stopped volumes: