- 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
18 lines
263 B
Docker
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"]
|