Add Dockerfile for PHP deployment

This commit is contained in:
2026-06-10 21:30:32 +07:00
parent bb7b02e16e
commit 9ae6cf29da
+13
View File
@@ -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