Update API endpoints, add wash certificate handling
Replaced legacy 'nnks.truckwash.dk' endpoint with 'api.truckwash.dk' across the codebase for consistency. Implemented a feature to handle certificate downloads, including file serving and validation. Updated PHP configuration to support additional dependencies like PHPMailer, and introduced necessary route and configuration changes for wash certificate processing.
This commit is contained in:
+11
-2
@@ -14,10 +14,10 @@ RUN apt-get update && apt-get install -y \
|
||||
libonig-dev \
|
||||
libxml2-dev \
|
||||
zip \
|
||||
unzip \
|
||||
git \
|
||||
curl \
|
||||
&& docker-php-ext-install mbstring exif pcntl bcmath gd pdo_mysql mysqli
|
||||
libzip-dev \
|
||||
&& docker-php-ext-install mbstring exif pcntl bcmath gd pdo_mysql mysqli zip
|
||||
|
||||
# Copy application files into the container
|
||||
COPY /nginx/app /var/www/html
|
||||
@@ -26,9 +26,18 @@ COPY /nginx/app /var/www/html
|
||||
RUN chown -R www-data:www-data /var/www/html \
|
||||
&& chmod -R 755 /var/www/html
|
||||
|
||||
# Require the phpmailer/phpmailer package
|
||||
RUN composer require phpmailer/phpmailer
|
||||
|
||||
# Install using Composer
|
||||
RUN composer install --no-dev
|
||||
|
||||
# Install the /var/www/html/modules/washcertificates directory
|
||||
WORKDIR /var/www/html/modules/washcertificates
|
||||
RUN composer install --no-dev
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
# Expose port 9000
|
||||
EXPOSE 9000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user