dockerize project #3

Merged
csimonis merged 40 commits from feature/build into main 2024-12-04 17:37:10 +00:00
Showing only changes of commit 9be0e7dfdf - Show all commits

View File

@ -4,10 +4,7 @@ COPY . /var/www/project/
COPY ./.docker/hosts/file-explorer.conf /etc/apache2/sites-enabled/file-explorer.conf COPY ./.docker/hosts/file-explorer.conf /etc/apache2/sites-enabled/file-explorer.conf
RUN apt-get update \ RUN apt-get update \
&& apt-get install -qq -y --no-install-recommends \ && apt-get install -qq -y --no-install-recommends cron nano locales coreutils;
cron \
nano \
locales coreutils apt-utils git libicu-dev g++ libpng-dev libxml2-dev libzip-dev libonig-dev libxslt-dev;
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
@ -18,6 +15,6 @@ 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 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 RUN pecl install apcu && docker-php-ext-enable apcu
RUN composer install --no-dev --no-install-recommends --no-interaction --no-progress --no-suggest --optimize-autoloader RUN composer install --no-dev --optimize-autoloader --no-suggest --no-progress
WORKDIR /var/www WORKDIR /var/www/project