Last active
April 16, 2020 00:36
-
-
Save dalmosantos/6c64a74fb50496e0f4ea951db63b2985 to your computer and use it in GitHub Desktop.
Dockerfiles
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:6.10 | |
ENV HTTPD_DATA_PATH=/var/www \ | |
HTTPD_LOG_PATH=/var/log/httpd | |
RUN yum repolist && yum update -y && \ | |
yum install -y yum-utils && \ | |
yum install -y centos-release-scl epel-release && \ | |
INSTALL_PKGS="gettext hostname nss_wrapper bind-utils httpd mod_ssl curl openssl" && \ | |
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \ | |
rpm -V $INSTALL_PKGS && \ | |
yum clean all ; rm -rf /var/cache/yum | |
EXPOSE 80 443 | |
CMD ["/usr/sbin/httpd","-D","FOREGROUND"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment