https://github.com/scriptogre/tailwindcss-docker
A minimal Docker image for running the Tailwind CSS standalone CLI with proper signal forwarding.
https://github.com/scriptogre/tailwindcss-docker
docker tailwindcss tailwindcss-cli tini
Last synced: 8 months ago
JSON representation
A minimal Docker image for running the Tailwind CSS standalone CLI with proper signal forwarding.
- Host: GitHub
- URL: https://github.com/scriptogre/tailwindcss-docker
- Owner: scriptogre
- Created: 2025-05-12T11:54:07.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-05-12T13:14:30.000Z (8 months ago)
- Last Synced: 2025-05-12T22:59:22.961Z (8 months ago)
- Topics: docker, tailwindcss, tailwindcss-cli, tini
- Language: Dockerfile
- Homepage: https://ghcr.io/scriptogre/tailwindcss
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TailwindCSS Docker Image
A minimal Docker image for the Tailwind CSS standalone CLI that bundles `tini` for proper signal forwarding.
## Usage Example
Pull and run the image:
```bash
docker run \
--init \
--rm \
--volume "$(pwd)":/code \
ghcr.io/scriptogre/tailwindcss:latest \
-i ./static/css/input.css \
-o ./static/css/output.css \
--watch=always
```
Or with Docker Compose:
```yaml
services:
tailwindcss:
image: ghcr.io/scriptogre/tailwindcss:latest
volumes:
- .:/code
command: [
"-i", "./static/css/input.css",
"-o", "./static/css/output.css",
"--watch=always"
]
init: true
```
## Notes
- The final image is based on `debian:bullseye-slim` and includes the `tailwindcss` CLI.
- The container expects a bind mount from the host to `/code`, where your Tailwind CSS files are located.
- Use `init: true` in docker-compose for proper signal handling.