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.
 
 
 
 

36 lines
1.0 KiB

FROM php:8.2-apache
LABEL maintainer='Jaivic'
RUN a2enmod rewrite
RUN apt-get update && apt-get install -y \
zlib1g-dev \
libicu-dev \
libzip-dev \
libxml2-dev \
libpq-dev \
libpng-dev \
nano \
&& docker-php-ext-install pdo pdo_pgsql pgsql zip bcmath gd intl soap opcache \
&& 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/ddjj
COPY ./docker/000-default.conf /etc/apache2/sites-enabled/000-default.conf
WORKDIR /var/www/ddjj
RUN chown -R www-data:www-data /var/www/ddjj \
&& composer install
# Eliminar .env existente y crear uno nuevo a partir de .env.example
RUN rm -f /var/www/ddjj/.env \
&& cp /var/www/ddjj/.env.example /var/www/ddjj/.env
RUN cd /var/www/ddjj/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