Benny Chan
Benny Chan

Reputation: 928

How can I integrate Tailwind css into my Django project with Docker?

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

Answers (1)

Shahid Tariq
Shahid Tariq

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

Related Questions