#Laravel + Docker + Tailwind CSS

8 messages · Page 1 of 1 (latest)

compact seal
#

Hi, I'm new to Laravel, but have experience with PHP and docker, I've been working on setting up my test environment using the Docker deployment with Sail.

Now I have found multiple instruction on how to set up Tailwind CSS with Laravel but none them seem to fit the Docker/Sail combo.

Are there any simple ways of doing this during Sail deployment or do I need to construct my own Docker cluster?

ebon crest
compact seal
# ebon crest Sail doesn't have much to do with Tailwind. You'd just run those commands; <http...

Thanks for a quick response, especially today :), I wasn't expecting Sail to deploy Tailwind, I was hoping there was an alternative docker container that already included Tailwinds that I could swap in with the docker-compose, "I if do a sail remote npm install it would disappear next time docker image got updated or if I rebooted the container.
This is all stuff I can manage if need be, I'm just trying to figure out if there a proper way to add 3rd party stuff to the default docker build or if I need to customize one for my own needs, thus preventing it from being updated as frequently.

ebon crest
#

I'm not sure I understand what you're trying to achieve here?
Tailwind is just CSS, you need to compile that. Which can be done with Vite through a dev-server (locally) or through a build, the build would be a one-time thing for each deployment. But, Sail is a development environment, it's not a production environment (it would be really bad to deploy that tbh)

compact seal
#

Thanks for your help

wheat rock
#

Would you mark you thread as solved?
Or do you have any more questions about sail?

Sail is more like a ready to use docker environment like a ubuntu machine that comes with everything you need.

#

For real deployments onto a server, there are more methods and better-suited docker containers for that work if you need an image for a CI.