This commit is contained in:
2026-04-06 19:02:37 +05:00
parent d775fbb9ba
commit fd001421ce
2 changed files with 11 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ RUN apk add --no-cache \
oniguruma-dev \ oniguruma-dev \
icu-dev \ icu-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \ && docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
&& docker-php-ext-install \ && docker-php-ext-install -j$(nproc) \
pdo_mysql \ pdo_mysql \
mbstring \ mbstring \
gd \ gd \
@@ -70,7 +70,9 @@ RUN chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cac
COPY docker/nginx/default.conf /etc/nginx/http.d/default.conf COPY docker/nginx/default.conf /etc/nginx/http.d/default.conf
COPY docker/php/php.ini $PHP_INI_DIR/conf.d/app.ini COPY docker/php/php.ini $PHP_INI_DIR/conf.d/app.ini
COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 80 EXPOSE 80
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] CMD ["/entrypoint.sh"]

7
docker/entrypoint.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
set -e
echo "Running database migrations..."
php artisan migrate --force --no-interaction
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf