You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

40 lines
892 B

FROM php:8.2-apache
RUN a2enmod rewrite
RUN apt-get update && apt-get install -y \
zlib1g-dev \
libicu-dev \
libzip-dev \
libxml2-dev \
libpq-dev \
libpng-dev
RUN docker-php-ext-install \
pdo \
pdo_pgsql \
pgsql \
zip \
bcmath \
gd \
intl \
soap \
opcache
RUN docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql
COPY --from=composer /usr/bin/composer /usr/bin/composer
ENV COMPOSER_ALLOW_SUPERUSER 1
COPY ./src/ /var/www/html
COPY ./docker/000-default.conf /etc/apache2/sites-enabled/000-default.conf
WORKDIR /var/www/html
RUN chown -R www-data:www-data /var/www/html \
&& composer install
RUN cd /var/www/html/storage/ \
&& mkdir -p framework/sessions framework/views framework/cache/data \
&& chmod -R 775 framework \
&& chown -R www-data:www-data framework \
&& chown -R www-data:www-data logs