Skip to content

Instantly share code, notes, and snippets.

@dalmosantos
Last active April 16, 2020 00:36
Show Gist options
  • Save dalmosantos/6c64a74fb50496e0f4ea951db63b2985 to your computer and use it in GitHub Desktop.
Save dalmosantos/6c64a74fb50496e0f4ea951db63b2985 to your computer and use it in GitHub Desktop.
Dockerfiles
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