Building apache Docker image

Building apache Docker image

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 mail@vishalturbo.ml
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"]
Last updated on by vishal devxo