After trying to run a react-vite container with its corresponding image, it fails after receiving the following in the logs:
node_modules/three-stdlib/libs/lottie.js (13062:32): Use of eval in
“node_modules/three-stdlib/libs/lottie.js” is strongly discouraged as
it poses security risks and may cause issues with modification.
Once it finished the build, the container is down.
The Dockerfile:
FROM node:latest AS builder
WORKDIR /src
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["npm", "run", "start"]
I’ve tried finding additional discussions regarding this matter however I couldn’t find any.