Public Repository

Last pushed: 2 years ago
Short Description
NodeJS based on centos:centos6
Full Description

Dockerfile information:

=======================

Dockerizing NodeJS: Dockerfile for building Nodejs images

Based on centos:centos6, installs NodeJS following the instructions from:

FROM centos:centos6
MAINTAINER Swetha RK rk.swetha@gmail.com

Enable EPEL for Node.js

RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Install Node.js and npm

RUN yum install -y npm

Bundle app source

COPY . /lab1

Install app dependencies

RUN cd /lab1; npm install

EXPOSE 8080

Run the index.js startup file

CMD ["node", "/lab1/index.js"]

==============================

#Package.json file used:

{
"name": "nodejs",
"private": true,
"version": "0.0.1",
"description": "Node.js on CentOS using docker",
"author": "Swetha RK rk.swetha@gmail.com",
"dependencies": {
"express": "3.3.4",
"jade": "1.1.5",
"mongodb":"1.3.23"
}
}

Docker Pull Command
Owner
swethark