From e12835696e7e1b050065608319d71215425c929e Mon Sep 17 00:00:00 2001 From: ov Date: Fri, 4 Aug 2023 18:45:34 +0530 Subject: [PATCH] init --- Dockerfile | 19 +++++++++++++++++++ build.bash | 1 + index.php | 1 + start | 1 + 4 files changed, 22 insertions(+) create mode 100644 Dockerfile create mode 100644 build.bash create mode 100644 index.php create mode 100644 start diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..483da3d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM debian:12.1 + +RUN apt update +#RUN apt install php8.2-oauth +RUN apt install apache2 php php8.2-mysql php8.2-mbstring php8.2-uploadprogress php8.2-sqlite3 php8.2-redis php8.2-oauth php8.2-intl php8.2-imap php8.2-imagick php8.2-http php8.2-gnupg php8.2-gd php8.2-curl -y +#COPY php8.2.conf /etc/apache2/mods-enabled/ +#COPY 000-default.conf /etc/apache2/sites-available/000-default.conf +##COPY start /usr/local/bin +#RUN a2enmod rewrite + +# Copy application source +VOLUME ["/var/www"] +#COPY index.php /var/www/ +#RUN chown -R www-data:www-data /var/www + +EXPOSE 80 +#CMD ["service apache2 start"] +CMD apachectl -D FOREGROUND + diff --git a/build.bash b/build.bash new file mode 100644 index 0000000..826bfb9 --- /dev/null +++ b/build.bash @@ -0,0 +1 @@ +docker build -t suvankar85/php-8.2-apache-bookworm:latest . diff --git a/index.php b/index.php new file mode 100644 index 0000000..147cebc --- /dev/null +++ b/index.php @@ -0,0 +1 @@ + diff --git a/start b/start new file mode 100644 index 0000000..8a071c4 --- /dev/null +++ b/start @@ -0,0 +1 @@ +service apache2 start