struct
This commit is contained in:
26
php/debian-bookworm-apache/Dockerfile
Normal file
26
php/debian-bookworm-apache/Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM debian:bookworm
|
||||
WORKDIR /var/www/html
|
||||
|
||||
#COPY index.php index.php
|
||||
#COPY src/ src
|
||||
EXPOSE 80
|
||||
RUN apt-get update -y
|
||||
RUN apt-get upgrade -y
|
||||
RUN apt-get install -y apt-utils apache2 php libapache2-mod-php
|
||||
#RUN apt install -y php apahec2 libapache2-mod-php # php-mysql
|
||||
|
||||
#COPY my-apache-site.conf /etc/apache2/sites-available/my-apache-site.conf
|
||||
#RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf && a2enmod rewrite && a2dissite 000-default && a2ensite my-apache-site && service apache2 restart
|
||||
COPY dir.conf /etc/apache2/mods-enabled/dir.conf
|
||||
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf && service apache2 restart
|
||||
|
||||
#docker-php-ext-install pdo_mysql
|
||||
#RUN apt-get install -y libmcached-dev zlib1g-dev && pecl install memcached-3.1.5 && docker-php-ext-enable memcached
|
||||
|
||||
#COPY --from=composer:2 /usr/bin/composer /usr/bin/#composer
|
||||
#COPY composer.json composer.json
|
||||
#COPY composer.lock composer.lock
|
||||
#RUN composer install --no-de
|
||||
|
||||
#ENTRYPOINT ["bash", "/start.sh"]
|
||||
CMD apachectl -D FOREGROUND
|
||||
1
php/debian-bookworm-apache/dir.conf
Normal file
1
php/debian-bookworm-apache/dir.conf
Normal file
@@ -0,0 +1 @@
|
||||
DirectoryIndex index.php index.html
|
||||
3
php/debian-bookworm-apache/dir.conf2
Normal file
3
php/debian-bookworm-apache/dir.conf2
Normal file
@@ -0,0 +1,3 @@
|
||||
<IfModule mod_dir.c>
|
||||
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
|
||||
</IfModule>
|
||||
1
php/debian-bookworm-apache/html/index.php
Normal file
1
php/debian-bookworm-apache/html/index.php
Normal file
@@ -0,0 +1 @@
|
||||
<?php phpinfo(); ?>
|
||||
4
php/debian-bookworm-apache/start.sh
Normal file
4
php/debian-bookworm-apache/start.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#php app.php my-migration-command # run migrations
|
||||
#service cron start # start some services
|
||||
#exec apache2-foreground # main execution
|
||||
CMD apachectl -D FOREGROUND
|
||||
Reference in New Issue
Block a user