Last active
April 11, 2021 12:09
-
-
Save tiagodevweb/8dce1d867b93fc75e293a2f4912b69f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM centos:7 | |
| RUN yum -y update | |
| RUN yum -y install httpd httpd-tools git vim | |
| RUN rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \ | |
| && rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
| RUN yum --enablerepo=remi-php73 -y install php php-bcmatch php-pdo_mysql php-mbstring php-dom php-gd | |
| COPY --from=composer:latest /usr/bin/composer /usr/bin/composer | |
| RUN curl -sL https://rpm.nodesource.com/setup_15.x | bash - \ | |
| && yum -y update \ | |
| && yum -y install nodejs | |
| RUN chown -R apache:apache /var/www/html/ | |
| # Update Apache Configuration | |
| RUN sed -E -i -e 's/\/var\/www\/html/\/var\/www\/html\/public/' /etc/httpd/conf/httpd.conf | |
| RUN sed -E -i -e '/<Directory "\/var\/www\/html\/public">/,/<\/Directory>/s/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf | |
| # Start Apache | |
| CMD ["/usr/sbin/httpd","-D","FOREGROUND"] | |
| EXPOSE 80 | |
| WORKDIR /var/www/html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment