From 1574378e90d99cb3ba40c29fc4d17e6579546362 Mon Sep 17 00:00:00 2001 From: hegdeashwin Date: Sun, 2 Oct 2016 23:33:02 +0530 Subject: [PATCH] Adds Dockerfile + update release to 0.0.8 --- Dockerfile | 24 ++++++++++++++++++++++++ README.md | 10 ++++------ package.json | 19 +++++++++---------- 3 files changed, 37 insertions(+), 16 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ef31bae --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM ubuntu:16.04 + +# make sure apt is up to date +RUN apt-get update + +# install nodejs and npm +RUN apt-get install -y nodejs npm + +# Create app directory +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app + +# install app dependencies +COPY package.json /usr/src/app +RUN npm install --production + +# Bundle app source +COPY . /usr/src/app + +# Your app binds to port 8000 so you'll use the EXPOSE instruction +# to have it mapped by the docker daemon +EXPOSE 8000 + +CMD [ "npm", "start" ] diff --git a/README.md b/README.md index 2a545d1..13dd3f5 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,12 @@ -# Protocore [![GitHub version](http://img.shields.io/badge/version-0.0.7-brightgreen.svg)](https://github.com/hegdeashwin/Protocore/releases) +# Protocore [![GitHub version](http://img.shields.io/badge/version-0.0.8-brightgreen.svg)](https://github.com/hegdeashwin/Protocore/releases) -[![Build Status](https://travis-ci.org/hegdeashwin/Protocore.svg?branch=master)](https://travis-ci.org/hegdeashwin/Protocore) [![Dependency Status](https://gemnasium.com/hegdeashwin/Protocore.svg)](https://gemnasium.com/hegdeashwin/Protocore) [![Node.js version](http://img.shields.io/badge/Node.js-%3E%200.10-brightgreen.svg)](https://github.com/hegdeashwin/Protocore/) [![io.js version](http://img.shields.io/badge/io.js-%3E%202.3-brightgreen.svg)](https://github.com/hegdeashwin/Protocore/) [![Built with Grunt](http://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/) [![License version](http://img.shields.io/badge/License-MIT-red.svg)](https://github.com/hegdeashwin/Protocore#license) +[![Build Status](https://travis-ci.org/hegdeashwin/Protocore.svg?branch=master)](https://travis-ci.org/hegdeashwin/Protocore) [![Dependency Status](https://gemnasium.com/hegdeashwin/Protocore.svg)](https://gemnasium.com/hegdeashwin/Protocore) [![Node.js version](http://img.shields.io/badge/Node.js-%3E%200.12-brightgreen.svg)](https://github.com/hegdeashwin/Protocore/) [![Built with Grunt](http://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/) [![License version](http://img.shields.io/badge/License-MIT-red.svg)](https://github.com/hegdeashwin/Protocore#license) Protocore is an open source walking application skeleton for a typical unstructured JavaScript/jQuery web apps. You can use it to quickly bootstrap your unstructured JavaScript/jQuery web application projects. ## Supports -* Node.js v0.10.x or above -* Node.js v4.0 new release -* iojs 2.3.x or above +* Node.js v0.12.x or above ## Prerequisites @@ -24,7 +22,7 @@ Assuming that Git is already installed & running: git clone https://github.com/Protocore-UI/Protocore ``` -Assuming that Node.js or io.js & Bower is already installed & running, +Assuming that Node.js & Bower is already installed & running, Install dependencies: ``` diff --git a/package.json b/package.json index 7583db2..c8561d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Protocore", - "version": "0.0.7", + "version": "0.0.8", "author": "Ashwin Hegde", "description": "Protocore is an open source walking application skeleton for a typical unstructured JavaScript/jQuery web apps. You can use it to quickly bootstrap your unstructured JavaScript/jQuery web application projects.", "contributors": [ @@ -11,19 +11,19 @@ ], "repository": { "type": "git", - "url": "http://github.com/hegdeashwin/Protocore" + "url": "http://github.com/Protocore-UI/Protocore" }, "issues": { - "url": "http://github.com/hegdeashwin/Protocore/issues?state=open" + "url": "http://github.com/Protocore-UI/Protocore/issues?state=open" }, "milestones": { - "url": "http://github.com/hegdeashwin/Protocore/issues/milestones" + "url": "http://github.com/Protocore-UI/Protocore/issues/milestones" }, "releases": { - "url": "http://github.com/hegdeashwin/Protocore/releases" + "url": "http://github.com/Protocore-UI/Protocore/releases" }, "wiki": { - "url": "http://github.com/hegdeashwin/Protocore/wiki" + "url": "http://github.com/Protocore-UI/Protocore/wiki" }, "dependencies": { "express": "~4.13.0", @@ -60,16 +60,15 @@ "architecture" ], "engines": { - "node": ">=0.10", - "iojs": ">=2.3" + "node": ">=0.12" }, "main": { - "start": "node server.js" + "start": "nodejs server.js" }, "licenses": [ { "type": "MIT", - "url": "http://raw.github.com/hegdeashwin/Protocore/master/LICENSE" + "url": "http://raw.github.com/Protocore-UI/Protocore/master/LICENSE" } ] }