There was an error while loading. Please reload this page.
1 parent d69241e commit 530c226Copy full SHA for 530c226
Dockerfile
@@ -1,18 +1,5 @@
1
FROM php:8.1-apache
2
-
3
-# Install PHP extensions
4
RUN docker-php-ext-install pdo pdo_mysql
5
6
-# Copy application code
7
COPY . /var/www/html
8
9
-# Change the document root to /var/www/html/web
10
-ENV APACHE_DOCUMENT_ROOT=/var/www/html/web
11
12
-# Update Apache configuration
13
-RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf && \
14
- sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
15
16
WORKDIR /var/www/html
17
18
EXPOSE 80
0 commit comments