Reputation: 928
I'm trying to use Tailwind CSS in my Django project running with Docker / Docker-compose. my Django container is built with python:3.9-slim, which has no npm built-in.
I am thinking to use node:15.4-alpine to install tailwind css. How can I do so? Can someone give me guidance on Dockerfile and docker-compose.yml
I've tried to start with this tailwind playground. But I don't need to run the live-server.
Upvotes: 1
Views: 3523
Reputation: 931
here is the good example to use tailwind in Django. On top of that there is the python library which you can use for implementing the tailwind with Django, see here https://pypi.org/project/django-tailwind/
Upvotes: 3