Skip to content

Instantly share code, notes, and snippets.

@caionitro
Created December 9, 2015 01:50
Show Gist options
  • Save caionitro/5b4b6ecc3030ddfc5bd7 to your computer and use it in GitHub Desktop.
Save caionitro/5b4b6ecc3030ddfc5bd7 to your computer and use it in GitHub Desktop.
docker com centos6, apache, php, nodejs, npm, bower, composer
FROM centos:centos6
MAINTAINER Caio Mariano
RUN yum -y update;
RUN yum -y install httpd;
RUN yum -y install php php-mbstring php-mysql;
RUN curl --silent --location https://rpm.nodesource.com/setup | bash -;
RUN yum -y install nodejs;
RUN npm install -g npm@latest;
RUN npm install -g bower;
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer;
# RUN echo "Apache HTTPD" >> /var/www/html/index.html
EXPOSE 80
# ENTRYPOINT ["service httpd start"]
CMD exec /usr/sbin/apachectl -D FOREGROUND
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment