2023-12-21 21:57:52 +00:00
|
|
|
FROM php:8.3.0-apache
|
|
|
|
|
|
|
|
RUN docker-php-ext-install mysqli
|
2023-12-22 19:40:10 +00:00
|
|
|
RUN docker-php-ext-install pdo_mysql
|
2023-12-21 21:57:52 +00:00
|
|
|
RUN apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev libwebp-dev git libc-client-dev libkrb5-dev
|
|
|
|
RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp
|
|
|
|
RUN docker-php-ext-install gd
|
|
|
|
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl
|
|
|
|
RUN docker-php-ext-install imap
|
2024-01-02 13:07:51 +00:00
|
|
|
RUN docker-php-ext-install opcache
|
2023-12-21 21:57:52 +00:00
|
|
|
RUN a2enmod rewrite
|
|
|
|
RUN a2enmod expires
|
|
|
|
|
2024-01-02 13:07:51 +00:00
|
|
|
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
|
|
|
ADD opcache.ini /usr/local/etc/php/conf.d/opcache.ini
|
|
|
|
|
2023-12-21 21:57:52 +00:00
|
|
|
ADD freescout-dist /var/www/html
|
2023-12-22 19:40:10 +00:00
|
|
|
RUN chown -R www-data:www-data /var/www/html/
|
2023-12-21 21:57:52 +00:00
|
|
|
ADD apache2.conf /etc/apache2/sites-enabled/000-default.conf
|
|
|
|
|
|
|
|
ADD freescout-entrypoint /usr/local/bin/
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
ENTRYPOINT ["freescout-entrypoint"]
|
2023-12-22 19:40:10 +00:00
|
|
|
CMD ["apache2-foreground"]
|