Update Dockerfile-web-ui-dev

This commit is contained in:
liaquatali000
2024-05-10 23:36:01 +05:00
committed by GitHub
parent 909f4f9712
commit 7308a8ee3b

View File

@@ -31,14 +31,15 @@ RUN npm install -g yarn
#RUN npm i --max-old-space-size=12000 --loglevel=verbose
RUN yarn add eslint-plugin-jsdoc@37.9.7 --dev --ignore-engines
RUN yarn install --ignore-engines --verbose
RUN yarn cache clean
RUN yarn install --verbose
# Copy the application code
COPY . .
# Build the Vite application
RUN npm run build
#RUN node --max-old-space-size=4096 ./node_modules/.bin/vite build
#RUN npm run build
RUN node --max-old-space-size=4096 ./node_modules/.bin/vite build
# Stage 2: Create the runtime image
FROM nginx:alpine