2024-05-17 10:14:16 -04:00
|
|
|
FROM php:8.2-apache
|
|
|
|
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
2024-05-23 17:43:46 -04:00
|
|
|
RUN apt update && \
|
|
|
|
apt upgrade -y && \
|
|
|
|
apt install -y \
|
2024-05-17 10:14:16 -04:00
|
|
|
libzip-dev \
|
|
|
|
unzip \
|
|
|
|
libonig-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libpng-dev \
|
|
|
|
libjpeg-dev \
|
|
|
|
libicu-dev \
|
|
|
|
sqlite3 \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
nano
|
|
|
|
|
2024-05-17 19:25:28 -04:00
|
|
|
RUN docker-php-ext-configure gd --with-jpeg
|
|
|
|
RUN docker-php-ext-configure zip
|
|
|
|
|
|
|
|
RUN docker-php-ext-install \
|
|
|
|
#pdo_sqlite \
|
2024-05-17 10:14:16 -04:00
|
|
|
zip \
|
|
|
|
mbstring \
|
|
|
|
exif \
|
|
|
|
pcntl \
|
|
|
|
bcmath \
|
|
|
|
xml \
|
|
|
|
intl
|
|
|
|
|
|
|
|
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
|
|
|
|
php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \
|
|
|
|
php -r "unlink('composer-setup.php');"
|
|
|
|
|
|
|
|
RUN curl -sS https://get.symfony.com/cli/installer | bash && \
|
|
|
|
mv /root/.symfony5/bin/symfony /usr/local/bin/symfony
|
|
|
|
|
|
|
|
COPY 000-default.conf /etc/apache2/sites-available/
|
|
|
|
|
2024-05-23 17:43:46 -04:00
|
|
|
COPY composer.lock composer.json /var/www/html/
|
2024-05-17 10:14:16 -04:00
|
|
|
|
|
|
|
RUN composer install --no-scripts --no-dev --optimize-autoloader
|
|
|
|
|
2024-05-23 17:43:46 -04:00
|
|
|
COPY . /var/www/html/
|
|
|
|
RUN rm /var/www/html/.env*
|
2024-05-17 10:14:16 -04:00
|
|
|
|
2024-05-23 17:43:46 -04:00
|
|
|
RUN cp /var/www/html/data/data.db /var/www/html/var/
|
2024-05-17 10:14:16 -04:00
|
|
|
|
2024-05-23 17:43:46 -04:00
|
|
|
RUN chown -R www-data:www-data /var/www/html
|
|
|
|
RUN chmod -R 755 /var/www/html
|