From 8c9329cd108aaf16b7c36f1b7e46ea0c1f3cd6a1 Mon Sep 17 00:00:00 2001 From: Fernando <82854646+FernandosPerez@users.noreply.github.com> Date: Sat, 2 May 2026 21:34:55 -0600 Subject: [PATCH] Update Dockerfile to use supervisord for process management --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f061662d..4c40ca6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,21 @@ FROM php:8.2-fpm-alpine -RUN apk add --no-cache nginx nodejs npm \ +RUN apk add --no-cache nginx nodejs npm supervisor \ && docker-php-ext-install pdo pdo_mysql mysqli bcmath WORKDIR /app COPY . . RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -RUN composer install --no-dev --optimize-autoloader +RUN composer install --optimize-autoloader RUN npm ci && npm run build RUN mkdir -p storage/framework/{sessions,views,cache} \ && chmod -R 775 storage bootstrap/cache +COPY supervisord.conf /etc/supervisord.conf + EXPOSE 8080 -CMD ["php", "artisan", "serve", "--host=0.0.0.0", "--port=8080"] +CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]