Initial commit with Dockerfile, apache.conf, and docker-compose.yml
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM php:8.3-apache
|
||||
RUN apt-get update && apt-get install -y libpq-dev libzip-dev unzip libpng-dev libjpeg-dev libfreetype6-dev libicu-dev && \
|
||||
docker-php-ext-install pdo_pgsql pgsql zip bcmath gd intl
|
||||
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
|
||||
apt-get install -y nodejs
|
||||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
|
||||
php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \
|
||||
rm composer-setup.php
|
||||
WORKDIR /var/www/html
|
||||
COPY . .
|
||||
RUN composer install --no-dev --optimize-autoloader
|
||||
RUN npm install && npm run build
|
||||
COPY apache.conf /etc/apache2/sites-available/000-default.conf
|
||||
RUN a2enmod rewrite
|
||||
RUN chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache
|
||||
EXPOSE 80
|
||||
CMD ["apache2-foreground"]
|
||||
Reference in New Issue
Block a user