docker
This commit is contained in:
+9
-5
@@ -1,16 +1,20 @@
|
|||||||
FROM php:8.2-apache
|
FROM php:8.2-apache
|
||||||
|
|
||||||
|
# Install PHP extensions & enable Apache modules
|
||||||
RUN docker-php-ext-install pdo_mysql mysqli \
|
RUN docker-php-ext-install pdo_mysql mysqli \
|
||||||
&& a2enmod rewrite headers
|
&& a2enmod rewrite headers
|
||||||
|
|
||||||
COPY index.html /var/www/html/index.html
|
# Copy application files
|
||||||
|
COPY portal.html /var/www/html/index.html
|
||||||
|
COPY webgis_app/ /var/www/html/webgis_app/
|
||||||
|
COPY db_scripts/ /var/www/html/db_scripts/
|
||||||
COPY 01/ /var/www/html/01/
|
COPY 01/ /var/www/html/01/
|
||||||
COPY 02/ /var/www/html/02/
|
COPY 02/ /var/www/html/02/
|
||||||
COPY 03/ /var/www/html/03/
|
COPY 03/ /var/www/html/03/
|
||||||
COPY final/ /var/www/html/final/
|
|
||||||
COPY project_final/ /var/www/html/project_final/
|
|
||||||
COPY database/ /var/www/html/database/
|
|
||||||
|
|
||||||
RUN chown -R www-data:www-data /var/www/html
|
# Set proper permissions
|
||||||
|
RUN chown -R www-data:www-data /var/www/html \
|
||||||
|
&& find /var/www/html -type d -exec chmod 755 {} \; \
|
||||||
|
&& find /var/www/html -type f -exec chmod 644 {} \;
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|||||||
Reference in New Issue
Block a user