Update Dockerfile-web-ui-dev to include Tailwind CSS and plugins

This commit is contained in:
2025-02-01 21:44:03 +07:00
parent 1bc790596f
commit b343880bf6

View File

@@ -33,7 +33,10 @@ RUN npm install -g yarn --force
RUN yarn -v RUN yarn -v
#RUN npm i --max-old-space-size=12000 --loglevel=verbose #RUN npm i --max-old-space-size=12000 --loglevel=verbose
RUN yarn add eslint-plugin-jsdoc@37.9.7 --dev --ignore-engines # RUN yarn add eslint-plugin-jsdoc@37.9.7 --dev --ignore-engines
# Explicitly install Tailwind CSS and plugins if needed
RUN yarn add -D tailwindcss postcss autoprefixer @tailwindcss/typography
RUN yarn install --verbose RUN yarn install --verbose
# Copy the application code # Copy the application code
@@ -42,8 +45,6 @@ RUN ls -alh
RUN ls -alh src/ RUN ls -alh src/
# Build the Vite application # Build the Vite application
# Explicitly install Tailwind CSS and plugins if needed
RUN yarn add -D tailwindcss postcss autoprefixer @tailwindcss/typography
#RUN npm run build #RUN npm run build
RUN node --max-old-space-size=8192 ./node_modules/.bin/vite build RUN node --max-old-space-size=8192 ./node_modules/.bin/vite build