delete_files

This commit is contained in:
Olu Amey
2022-11-20 07:52:04 -05:00
parent a2a42348c8
commit aaf5e6f432
601 changed files with 4 additions and 107964 deletions
+4 -2
View File
@@ -16,6 +16,8 @@ RUN apt-get install -y \
libfreetype6-dev \
g++
RUN echo ${WRB_WWWAPI_PATH}
RUN docker-php-ext-install \
bz2 \
intl \
@@ -26,7 +28,7 @@ RUN docker-php-ext-install \
mysqli
# 2. set up document root for apache
COPY docker/apache/000-default.conf /etc/apache2/sites-available/000-default.conf
COPY ${WRB_WWWAPI_PATH}/docker/apache/000-default.conf /etc/apache2/sites-available/000-default.conf
# 3. mod_rewrite for URL rewrite and mod_headers for .htaccess extra headers like Access-Control-Allow-Origin-
RUN a2enmod rewrite headers
@@ -40,7 +42,7 @@ RUN mv composer.phar /usr/local/bin/composer
RUN chmod +x /usr/local/bin/composer
RUN composer self-update
COPY / /var/www/html/
COPY ${WRB_WWWAPI_PATH}/ /var/www/html/
# 6. we need a user with the same UID/GID with host user
# so when we execute CLI commands, all the host file's ownership remains intact
# otherwise command from inside container will create root-owned files and directories