Skip to content

Commit 530c226

Browse files
Update Dockerfile
1 parent d69241e commit 530c226

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Dockerfile

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
FROM php:8.1-apache
2-
3-
# Install PHP extensions
42
RUN docker-php-ext-install pdo pdo_mysql
5-
6-
# Copy application code
73
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-
164
WORKDIR /var/www/html
17-
185
EXPOSE 80

0 commit comments

Comments
 (0)