Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

hmm

Andras Bacsai1540493b2909
diff --git a/docker/prod-ssu/Dockerfile b/docker/prod-ssu/Dockerfile
index 27cf621a2d..bdd65eb433 100644
--- a/docker/prod-ssu/Dockerfile
+++ b/docker/prod-ssu/Dockerfile
@@ -4,8 +4,7 @@ WORKDIR /var/www/html
COPY composer.json composer.lock ./
RUN composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist
-COPY --chown=9999:9999 . .
-RUN composer dump-autoload
+
FROM node:19 as static-assets
WORKDIR /app
@@ -23,10 +22,15 @@ RUN apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*
COPY docker/prod-ssu/nginx.conf /etc/nginx/conf.d/custom.conf
COPY --from=base --chown=9999:9999 /var/www/html .
+
+COPY --chown=9999:9999 . .
+RUN composer dump-autoload
+
COPY --from=static-assets --chown=9999:9999 /app/public/build ./public/build
COPY --chmod=755 docker/prod-ssu/etc/s6-overlay/ /etc/s6-overlay/
-RUN php artisan optimize
+RUN php artisan route:cache
+RUN php artisan view:cache
RUN echo "alias ll='ls -al'" >>/etc/bash.bashrc
RUN echo "alias a='php artisan'" >>/etc/bash.bashrc