Building apache Docker image

Building apache Docker image 1

1.create a directory

mkdir abc

go into directory

cd abcd

2.docker file

nano dockerfile

copy the below code

FROM ubuntu:14.04
 MAINTAINER xxxturbo [email protected]
 RUN apt-get update && \
  apt-get install -y apache2 && \
  apt-get clean
 ENV APACHE_LOG_DIR /var/log/apache2
 ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]
Default image
Vishal Devxo
Vishal Devxo is a DevOps engineer and a Backend developer, he spends all his time for creating good tutorials with better visuals and blogging, developed some projects based on Python-Django, some hacking modules and scripts in python