I have a Docker container on which I would like to a run a nodejs application.
The application is just a script reading files and generating csv files. There is no frontend and therefore it does not need to run on a port. Command to run nodejs application.
node index.js --flag_a <flag_a_name> --flag_b <flag_b_name>
How to configure a Dockerfile so I can run the script in a container and store the output outside the container (in a host system).
** My Dockerfile content **
FROM node:12-alpine
WORKDIR /app
COPY package.json /app
RUN npm install
COPY . /app
ENTRYPOINT ["node index.js", "--flag_a flag_a_name", "--flag_b flag_b_name"]
I have already installed docker, nodejs and npm.