Files
api/services/php/Dockerfile
T
Jepp9350 8928cd375a Add booked_invoice_id property and optimize invoice handling
Introduce the booked_invoice_id property in collected_order_invoices_o for improved invoice management. Optimize performance by avoiding redundant requests to external systems when the booked_invoice_id is already set. Enhance routes to include the booked_invoice_id in relevant responses and ensure a consistent structure for associated data.
2025-03-04 08:24:33 +01:00

43 lines
1.0 KiB
Docker

# Use the official PHP 8.2 image with Apache disabled
FROM php:8.2-fpm
# Set the working directory inside the container
WORKDIR /var/www/html
# Install Composer globally
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Install required extensions and dependencies
RUN apt-get update && apt-get install -y \
libpng-dev \
libonig-dev \
libxml2-dev \
zip \
git \
curl \
libzip-dev \
default-mysql-client \
&& 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
# Set the appropriate permissions for the working directory
RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html
# 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
# Start PHP-FPM when the container starts
CMD ["php-fpm"]