I’m trying to build my own apache image.
My running environment is
Version 17.06.0-ce
API version 1.30
Go version go1.8.3
OS type linux
OS Debian GNU/Linux 9 (stretch)
Architecture amd64
Kernel version 4.9.0-3-amd64
This is my Dockerfile
################################################
FROM debian:stable
WORKDIR /app
ENV TERM=xterm
RUN apt-get update
RUN apt-get install -y php7.0
RUN apt-get install -y apt-utils
RUN apt-get install -y mc
RUN apt-get install -y apache2
VOLUME /webserver_data
EXPOSE 80
ENTRYPOINT /usr/sbin/service apache2 start
################################################
As far as I’ve read, the container stops running when the last command it runs ends.
But what I really want to is to start the apache2 and leave the container listening for connections.
Is this possible ?
What am I missing ?
Thanks.
Regards.