Add Dockerfile for PHP deployment
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
FROM php:8.3-apache
|
||||
|
||||
# Install mysqli and PDO MySQL extensions
|
||||
RUN docker-php-ext-install mysqli pdo pdo_mysql
|
||||
|
||||
# Copy the 02/ folder contents as the web root
|
||||
COPY 02/ /var/www/html/
|
||||
|
||||
# Set proper permissions
|
||||
RUN chown -R www-data:www-data /var/www/html \
|
||||
&& chmod -R 755 /var/www/html
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user