2025-06-15 11:01:11 -06:00
|
|
|
FROM php:8.2-apache
|
|
|
|
|
# Enable Apache modules
|
|
|
|
|
RUN a2enmod rewrite
|
|
|
|
|
# Install composer dependencies
|
2026-08-24 21:48:42 -06:00
|
|
|
RUN apt update && apt upgrade -y && apt install -y git curl libzip-dev zip unzip libonig-dev
|
2025-06-15 11:01:11 -06:00
|
|
|
# Install Node
|
2026-08-24 21:48:42 -06:00
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
2025-06-15 11:01:11 -06:00
|
|
|
RUN apt update && apt-get install -y nodejs
|
|
|
|
|
# Install any extensions you need
|
2026-08-24 21:48:42 -06:00
|
|
|
RUN docker-php-ext-install mysqli pdo pdo_mysql zip bcmath mbstring
|
2025-06-15 11:01:11 -06:00
|
|
|
# Install Composer
|
|
|
|
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
|
|
|
# Set the working directory to /var/www
|
|
|
|
|
WORKDIR /var/www
|
|
|
|
|
# Copy the source code into the container at /var/www
|
|
|
|
|
COPY ./ .
|