Refactor: migrate files

This commit is contained in:
Jepp9350
2025-01-29 14:27:44 +01:00
parent 4c74dd7995
commit 707df910b0
142 changed files with 371 additions and 9 deletions
+36
View File
@@ -0,0 +1,36 @@
# 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 \
unzip \
git \
curl \
&& docker-php-ext-install mbstring exif pcntl bcmath gd pdo_mysql mysqli
# 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
# Expose port 9000
EXPOSE 9000
# Start PHP-FPM when the container starts
CMD ["php-fpm"]