diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0c0f9c5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +######################### +# Run VTOP in a docker container by running +# docker run --rm -it --net=host --pid=host snpranav/vtop +######################### +FROM node:12.18-buster +MAINTAINER Pranav Shikarpur + +ENV LANG=en_US.utf8 +ENV TERM=xterm-256color + +RUN npm install -g vtop + +CMD ["vtop"] diff --git a/README.md b/README.md index 6898c44..88692e9 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,15 @@ npm install -g vtop If you're on macOS, or get an error about file permissions, you may need to do ```sudo npm install -g vtop```. Don't do this if you're using [nvm](https://github.com/creationix/nvm). +The Docker Way +--- +If you don't have Node.js installed, don't worry! +* Install docker from [here](https://docs.docker.com/get-docker/) +* Run the following command in your terminal, +```sh +docker run --rm -it --pid=host snpranav/vtop +``` + Running ---