file-explorer/Dockerfile

21 lines
733 B
Docker
Raw Normal View History

2024-12-04 14:51:27 +01:00
FROM php:8.2-apache
2024-12-04 16:43:26 +01:00
COPY . /var/www/project/
COPY ./.docker/hosts/file-explorer.conf /etc/apache2/sites-enabled/file-explorer.conf
2024-12-04 14:51:27 +01:00
RUN apt-get update \
2024-12-04 16:51:27 +01:00
&& apt-get install -qq -y --no-install-recommends cron nano locales coreutils;
2024-12-04 14:51:27 +01:00
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
RUN curl -sSk https://getcomposer.org/installer | php -- --disable-tls && \
mv composer.phar /usr/local/bin/composer
RUN docker-php-ext-configure intl
RUN docker-php-ext-install pdo pdo_mysql mysqli gd opcache intl zip calendar dom mbstring zip gd xsl && a2enmod rewrite
RUN pecl install apcu && docker-php-ext-enable apcu
2024-12-04 16:51:27 +01:00
RUN composer install --no-dev --optimize-autoloader --no-suggest --no-progress
2024-12-04 16:31:21 +01:00
2024-12-04 16:51:27 +01:00
WORKDIR /var/www/project