Fix docker stuff
This commit is contained in:
parent
1652bb08de
commit
fa1bc382f9
@ -1,8 +1,7 @@
|
|||||||
FROM php:8.3.0-apache
|
FROM php:8.3.0-apache
|
||||||
|
|
||||||
VOLUME /var/www/html
|
|
||||||
|
|
||||||
RUN docker-php-ext-install mysqli
|
RUN docker-php-ext-install mysqli
|
||||||
|
RUN docker-php-ext-install pdo_mysql
|
||||||
RUN apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev libwebp-dev git libc-client-dev libkrb5-dev
|
RUN apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev libwebp-dev git libc-client-dev libkrb5-dev
|
||||||
RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp
|
RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp
|
||||||
RUN docker-php-ext-install gd
|
RUN docker-php-ext-install gd
|
||||||
@ -12,6 +11,7 @@ RUN a2enmod rewrite
|
|||||||
RUN a2enmod expires
|
RUN a2enmod expires
|
||||||
|
|
||||||
ADD freescout-dist /var/www/html
|
ADD freescout-dist /var/www/html
|
||||||
|
RUN chown -R www-data:www-data /var/www/html/
|
||||||
ADD apache2.conf /etc/apache2/sites-enabled/000-default.conf
|
ADD apache2.conf /etc/apache2/sites-enabled/000-default.conf
|
||||||
|
|
||||||
ADD freescout-entrypoint /usr/local/bin/
|
ADD freescout-entrypoint /usr/local/bin/
|
||||||
@ -19,3 +19,4 @@ ADD freescout-entrypoint /usr/local/bin/
|
|||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
ENTRYPOINT ["freescout-entrypoint"]
|
ENTRYPOINT ["freescout-entrypoint"]
|
||||||
|
CMD ["apache2-foreground"]
|
||||||
|
@ -5,4 +5,4 @@ php artisan freescout:clear-cache
|
|||||||
php artisan storage:link
|
php artisan storage:link
|
||||||
php artisan migrate
|
php artisan migrate
|
||||||
|
|
||||||
exec docker-php-entrypoint
|
exec docker-php-entrypoint "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user