Last active
November 22, 2018 09:05
-
-
Save sezemiadmin/13503e19e84b1706e1ceaaf67b51274a to your computer and use it in GitHub Desktop.
比べて学ぶ仮想マシンとコンテナ サンプル dockerfile
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 | |
MAINTAINER yourname | |
RUN yum -y install httpd | |
RUN yum clean all | |
RUN sed -i -e \ | |
"s/#ServerName www\.example\.com:80/ServerName www.example.com:80/" \ | |
/etc/httpd/conf/httpd.conf | |
ADD ./html/ /var/www/html/ | |
EXPOSE 80 | |
CMD ["/usr/sbin/httpd", "-D", "FOREGROUND"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment