Hi, first timer on discord but not for laravel, I've installed and configured the new Laravel 12 React starter kit with Inertia. I've 0 customization on it, literally just the starter kit.
I created a bunch of Dockerfile to host my app, here's the first one for nginx container
FROM registry.gitlab.com/custom/company/registry/composer:latest AS installer
WORKDIR /var/www
COPY ./composer.json .
COPY ./composer.lock .
RUN composer install \
--no-interaction \
--no-plugins \
--no-scripts \
--no-dev \
--prefer-dist \
--ignore-platform-req=*
FROM registry.gitlab.com/custom/company/registry/php:8.4 AS linker
WORKDIR /var/www
COPY . .
RUN php artisan storage:link
FROM registry.gitlab.com/custom/company/registry/nginx:1.2
WORKDIR /var/www
COPY .env ./.env
COPY --from=linker /var/www .
COPY --from=installer /var/www/vendor .
RUN chown -R www-data:www-data \
./app \
./bootstrap \
./config \
./database \
./public \
./resources \
./routes \
./storage \
./vendor \
./composer.json \
./composer.lock \
./.env \
./artisan \
&& chmod 775 -R storage/framework/cache \
&& chmod 775 -R bootstrap/cache \
&& chgrp www-data -R storage/framework/cache \
&& rm -rf /usr/share/php /tmp/* /var/cache/apt/* \
&& rm -rf /var/lib/apt/lists/*
[Continue...]