Public Repository

Last pushed: 8 months ago
Short Description
Centos 7 + nginx + nodejs
Full Description

Dockerfile:

# joycoding/centos-nginx-nodejs dockerfile
# centos, nginx, nodejs
# @author Shaojiang Cai caishaojiang@gmail.com
# @date 11/03/2017

FROM centos

# install nginx
RUN yum update; yum clean all
RUN yum -y install epel-release; yum clean all
RUN yum -y install nginx; yum clean all
# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log
RUN ln -sf /dev/stderr /var/log/nginx/error.log

# install nodejs
RUN curl --silent --location https://rpm.nodesource.com/setup_7.x | bash -
RUN yum -y install nodejs; yum clean all
RUN yum install gcc-c++ openssl-devel make; yum clean all
RUN npm install -g express-generator
RUN npm install -g webpack
RUN npm install -g gulp
Docker Pull Command
Owner
joycoding