|
FROM ubuntu:22.04 MAINTAINER comicweb # Setup environment ENV DEBIAN_FRONTEND noninteractive # Update sources RUN apt-get update -y #INSTALL Editor RUN apt-get install nano #get utils RUN apt-get install -y apt-utils #get going RUN apt-get install -y iputils-ping #get webserver RUN apt-get install -y apache2 RUN apt-get install curl COPY ./source/comicweb-000-cgi-enabled.conf /etc/apache2/conf-available/cgi-enabled.conf #get python #RUN apt-get install -y python3 RUN a2enmod cgid RUN a2enconf cgi-enabled COPY ./source/comicweb-000-comicwebdk.conf /etc/apache2/sites-available/comicwebdk.conf RUN /etc/init.d/apache2 restart #get database RUN apt-get install -y mysql-server RUN apt-get -y install python3-pip RUN pip3 install mysql-connector-python #get php RUN apt-get install -y php RUN apt install -y php-mysql COPY ./source/comicweb-000-startupdb.sh /usr/bin/startupdb.sh COPY ./source/comicweb-000-initdb.py /usr/bin/initdb.py COPY ./dbinit /usr/bin/dbinit RUN chmod 755 /usr/bin/startupdb.sh CMD bash -C '/usr/bin/startupdb.sh';'bash' EXPOSE 80 |
||