I am using this docker file to give a simple hello world output on the browser. The docker file copies in the package.json(which already has express defined on it) and the index.json(which uses the express framework to display hello world)
Currently the size of this image is around 900Mb, I do want to make it smaller. I have tried multi-stage build , but im quite new to docker so don't really know how to.
FROM node:latest
WORKDIR /app
COPY package.json index.j ./
RUN npm install
EXPOSE 8080
CMD node index.js
As currently this is a very big docker file, how can I reduce the size using multi-stage?