Skip to content

Instantly share code, notes, and snippets.

@sezemiadmin
Last active November 22, 2018 09:05
Show Gist options
  • Save sezemiadmin/13503e19e84b1706e1ceaaf67b51274a to your computer and use it in GitHub Desktop.
Save sezemiadmin/13503e19e84b1706e1ceaaf67b51274a to your computer and use it in GitHub Desktop.
比べて学ぶ仮想マシンとコンテナ サンプル dockerfile
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