Public Repository

Last pushed: a year ago
Short Description
Centos 7 + nginx + nodejs
Full Description


# joycoding/centos-nginx-nodejs dockerfile
# centos, nginx, nodejs
# @author Shaojiang Cai
# @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 | 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