Update Dockerfile-web-ui-dev
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
ARG NODE_VERSION=18.20.0
|
||||
ARG NODE_VERSION=18.17.0
|
||||
ARG ALPINE_VERSION=3.19.0
|
||||
|
||||
FROM node:${NODE_VERSION}-alpine AS node
|
||||
@@ -22,14 +22,15 @@ RUN npm config set registry http://registry.cnpmjs.org
|
||||
#RUN npm ci --production --loglevel=verbose
|
||||
#RUN npm i --omit=dev --loglevel=verbose
|
||||
|
||||
RUN npm i --max-old-space-size=12000 --loglevel=verbose
|
||||
|
||||
#RUN npm i --max-old-space-size=12000 --loglevel=verbose
|
||||
RUN yarn install --ignore-engines --verbose
|
||||
RUN yarn cache clean
|
||||
# Copy the application code
|
||||
COPY . .
|
||||
|
||||
# Build the Vite application
|
||||
RUN npm run 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user