dev #1

Merged
webmaster merged 19 commits from dev into main 2025-12-22 15:28:43 +00:00
Showing only changes of commit c950a72fc8 - Show all commits

View File

@@ -1,14 +1,18 @@
# Use PHP 7.3 with Apache (compatible with Laravel 5.0) # Use PHP 7.0 with Apache (has native mcrypt support for Laravel 5.0)
FROM php:7.3-apache FROM php:7.0-apache
# Update to use archived Debian repositories
RUN sed -i 's|deb.debian.org|archive.debian.org|g' /etc/apt/sources.list \
&& sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list \
&& sed -i '/stretch-updates/d' /etc/apt/sources.list
# Install system dependencies # Install system dependencies
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y --allow-unauthenticated \
git \ git \
curl \ curl \
libpng-dev \ libpng-dev \
libonig-dev \
libxml2-dev \ libxml2-dev \
libzip-dev \ libmcrypt-dev \
zip \ zip \
unzip \ unzip \
libfreetype6-dev \ libfreetype6-dev \
@@ -17,13 +21,8 @@ RUN apt-get update && apt-get install -y \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd && docker-php-ext-install -j$(nproc) gd
# Install PHP extensions # Install PHP extensions (mcrypt is built-in for PHP 7.0)
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath zip tokenizer RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath mcrypt tokenizer zip
# Install mcrypt via PECL (required for Laravel 5.0)
RUN apt-get install -y libmcrypt-dev \
&& pecl install mcrypt-1.0.4 \
&& docker-php-ext-enable mcrypt
# Enable Apache mod_rewrite # Enable Apache mod_rewrite
RUN a2enmod rewrite RUN a2enmod rewrite