Sign inSign up

joycoding/centos-nginx-nodejs

By joycoding

•Updated about 8 years ago

Centos 7 + nginx + nodejs

Image
0

10K+

joycoding/centos-nginx-nodejs repository overview

⁠joycoding/centos-nginx-nodejs dockerfile

⁠centos, nginx, nodejs

⁠@author Shaojiang Cai [email protected]⁠

⁠@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_10.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 RUN npm install -g yarn

Tag summary

Content type

Image

Digest

Size

134.6 MB

Last updated

about 8 years ago

docker pull joycoding/centos-nginx-nodejs