-
-
Save shashi1811/6c4dacf1eac179453aa3ef4df6101d2e to your computer and use it in GitHub Desktop.
Dockerfile for apache container
This file contains 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 ubuntu:12.04 | |
RUN apt-get update | |
RUN apt-get install -y apache2 | |
ENV APACHE_RUN_USER www-data | |
ENV APACHE_RUN_GROUP www-data | |
ENV APACHE_LOG_DIR /var/log/apache2 | |
RUN echo 'Hello, docker' > /var/www/index.html | |
ENTRYPOINT ["/usr/sbin/apache2"] | |
CMD ["-D", "FOREGROUND"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment