mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-05 20:41:43 -07:00
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.
This commit is contained in:
parent
076b496bf6
commit
d52cf1ca63
1 changed files with 1 additions and 0 deletions
|
@ -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 ./
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue