Rename Dockerfile to Containerfile
This commit is contained in:
parent
5f8284041c
commit
7124812e4d
1 changed files with 0 additions and 0 deletions
12
Containerfile
Normal file
12
Containerfile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
FROM php:8.4.14-apache
|
||||
|
||||
# Enable Apache modules and custom config as root during build
|
||||
RUN a2enmod rewrite
|
||||
|
||||
COPY apache.conf /etc/apache2/conf-available/custom.conf
|
||||
RUN a2enconf custom
|
||||
|
||||
# Log to /proc/self/fd for container output
|
||||
RUN sed -i 's|ErrorLog.*|ErrorLog /proc/self/fd/2|' /etc/apache2/sites-available/000-default.conf \
|
||||
&& sed -i 's|CustomLog.*|CustomLog /proc/self/fd/1 combined|' /etc/apache2/sites-available/000-default.conf \
|
||||
&& sed -i 's|ErrorLog.*|ErrorLog /proc/self/fd/2|' /etc/apache2/apache2.conf
|
||||
Loading…
Add table
Add a link
Reference in a new issue