My Dockerfile content is:
FROM ubuntu:24.04
EXPOSE 80
EXPOSE 443
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y build-essential && \
apt-get install -y software-properties-common && \
apt-get install -y byobu curl git htop man unzip vim wget && \
rm -rf /var/lib/apt/lists/*
# update the repository sources list
# and install dependencies
RUN apt-get update \
&& apt-get install -y curl \
&& apt-get -y autoclean
RUN mkdir /client_ssl
RUN apt-get install -y mc
RUN apt install mariadb-client -y
RUN apt install mysql-client -y
RUN apt-get install -y lynx # neede by mc F3
RUN apt-get install -y pkg-config #needed by watchman
RUN apt-get install -y wget
RUN apt-get install -y gpg-agent wget
RUN apt-get update
RUN apt install -y apache2
RUN apt install -y php libapache2-mod-php php-mysql
# ENTRYPOINT ["/usr/sbin/apache2ctl start"]
I had to comment the ENTRYPOINT one since docker build can not find the apache2ctl command. My goal is to have Apache running at the end of my Dockerfile…
Any suggestions? Thanks in advance