Answer the question
In order to leave comments, you need to log in
How to configure apache in Dockerfile?
I want to create an apache container. Googled an example dockerfile
FROM ubuntu:16.04
MAINTAINER [email protected]
RUN apt-get update && apt-get install -y openssh-server apache2 supervisor
RUN mkdir -p /var/lock/apache2 /var/run/apache2 /var/run/sshd /var/log/supervisor
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 22 80
CMD ["/usr/bin/supervisord"]
Answer the question
In order to leave comments, you need to log in
As an option - mount a folder from the local system using VOLUME with the necessary Apache configs. It is possible not in the Dockerfile - but in docker-compose or immediately at startup - whichever way you prefer to run containers ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question