/docker-next-tailwind

Develop NextJS applications with Docker and Tailwind CSS

Primary LanguageJavaScript

Next.js + Tailwind CSS + Docker

This is an example of how you can use Tailwind CSS in a Next.js using Docker for development.

It is based on the Next.js and Tailwind Css.

How to use

Download the example or clone the repo:

cd next-with-tailwindcss

To get this example running you just need to

npm install
npm run dev

Visit http://localhost:3000 add your own clases to styles/index.scss.

Running with Docker

Build the image based on the Dockerfile provided by the repo.

docker build --rm --tag next-tailwindcss:latest
docker run -it --name next-tailwind -p 3000:3000 -v ${PWD}/:/app/ next-tailwind:latest

example