FROM node:10 as build-stage
WORKDIR /app
RUN rm -Rf /app/*
RUN chown -R node: /app
USER node
RUN git clone https://github.com/johni0702/mumble-web .
RUN npm install
RUN npm run build
FROM nginx:1.15
COPY --from=build-stage /app/dist/ /usr/share/nginx/html/mumble-web
I use node 10 and I have change user for a non root-user (node). I copy the "dist" directory on a nginx container in the /usr/share/nginx/html/mumble-web. And I have configure nginx with this configuration :
It seems to install and build correctly but when I go to the interface I have an error.
index.js:46804 Uncaught ReferenceError: Unable to process binding "css: function(){return { minimal:minimalView} }"
Message: minimalView is not defined
at css (eval at createBindingsStringEvaluator (index.js:46405), <anonymous>:3:108)
at update (index.js:47608)
at ko.dependentObservable.disposeWhenNodeIsRemoved (index.js:46796)
at Function.evaluateImmediate_CallReadThenEndDependencyDetection (index.js:45596)
at Function.evaluateImmediate_CallReadWithDependencyDetection (index.js:45563)
at Function.evaluateImmediate (index.js:45524)
at Object.ko.computed.ko.dependentObservable (index.js:45377)
at index.js:46794
at Object.arrayForEach (index.js:43572)
at applyBindingsToNodeInternal (index.js:46766)
I think there are a problem in npm build, but I not found the error. Can you help me ?
Hello,
I use docker to build the project :
My Dockerfile is :
I use node 10 and I have change user for a non root-user (node). I copy the "dist" directory on a nginx container in the /usr/share/nginx/html/mumble-web. And I have configure nginx with this configuration :
It seems to install and build correctly but when I go to the interface I have an error.
I think there are a problem in npm build, but I not found the error. Can you help me ?
The logs of the build image :