Files
kakebo/Dockerfiles/vite/Dockerfile
Andros Fenollosa 35ed611a8e Replace Tailwind CLI with Vite build pipeline
- Vite container builds CSS (Tailwind + DaisyUI + custom) with
  content hashing for cache busting
- django-vite resolves hashed asset URLs via manifest.json
- Remove CDN dependencies for Tailwind and DaisyUI
- Single CSS entry point in assets/css/main.css
- Vite runs as build step before Django starts
2026-03-23 08:37:22 +01:00

18 lines
263 B
Docker

FROM node:24-alpine
WORKDIR /app
RUN npm install -g npm
RUN npm create vite@latest . -- --template vanilla
COPY package.json .
RUN npm install
COPY vite.config.js .
COPY postcss.config.js .
COPY tailwind.config.js .
EXPOSE 5173
CMD ["npx", "vite", "build"]