Skip to content

Instantly share code, notes, and snippets.

@shashi1811
Forked from tcnksm/Dockerfile
Created July 27, 2021 07:18
Show Gist options
  • Save shashi1811/6c4dacf1eac179453aa3ef4df6101d2e to your computer and use it in GitHub Desktop.
Save shashi1811/6c4dacf1eac179453aa3ef4df6101d2e to your computer and use it in GitHub Desktop.
Dockerfile for apache container
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