<p>Need an advice to dockerize and run a node JS static-content app on K8s cluster.</p>

<p>I have a static web-content which I run "npm run build” into the terminal which generates /build and direct my IIS webserver to /build/Index.html. </p>

<p>Now, I started creating a Docker file, how do I point my nodeJS image to invoke /build/Index.html file </p>

<pre><code>FROM node:carbon
WORKDIR /app
COPY /Core/* ./app
npm run build
EXPOSE 8080
CMD [ "node", ".app/build/index.html" ]
</code></pre>

<p>Please how can I run this app only on node v8.9.3 and
npm 5.6.0 ?</p>

<p>Any inputs please ?</p>

Abraham Dhanyaraj Arumbaka
<p>You can specify the version of node specifically:</p>

<pre><code>FROM node:8.9.3
</code></pre>
