Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mediabloke's avatar

Deploy Laravel Sail with Vue

I'm trying to deploy my Sail application which uses a Vue frontend.

I haven't been able to find any sort of documentation that shows how to build the frontend and only include the bundled app as part of the dockerfile.

My app isn't that big, but the dock image is almost 700mb

0 likes
3 replies
mediabloke's avatar

@Sinnbeck So from what I've seen so far, Sail is only supposed to be for development and not for production. That being said, they have the sail artisan sail:publish and sail build --no-cache commands listed in the docs. Should I ignore those and just create a completely new docker-compose file with nginx etc for deployment?

Sinnbeck's avatar

@mediabloke I would. I wouldn't want to use a php based server (unless its octane) to run a real website :)

1 like

Please or to participate in this conversation.