diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c8f50f7 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +npm-debug.log diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5522a2b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM node:boron + +# Create app directory +RUN mkdir -p /usr/src/app + +# Install app dependencies +COPY package.json /usr/src/app/ +RUN npm install + +# Bundle app source +COPY . /usr/src/app + +EXPOSE 3000 + +WORKDIR /usr/src/app + +CMD [ "npm", "start" ] diff --git a/readme.md b/readme.md index 07a7ff7..429553c 100644 --- a/readme.md +++ b/readme.md @@ -130,6 +130,19 @@ And the result would look like this... Keep in mind that server.js is a starting point for you to write your own server. I would also recommend using something like Express.js instead of connect.js. I like connect because it is so lightweight and I just wanted to do something simple. +### Docker + +Build the application like this: + +``` +docker build -t mlconnor/phantalyzer . +``` + +Run a container this way: + +``` +docker run -it -p 3000:3000 --name my-phantalyzer mlconnor/phantalyzer +``` ### The following is a list of apps the Wappalyzer detects ### ``` @@ -477,6 +490,3 @@ Zinnia ### Task List ### - [ ] Add instructions on how to run this on the server. - - -