Update Dockerfile-web-ui-dev
This commit is contained in:
@@ -31,14 +31,15 @@ RUN npm install -g yarn
|
|||||||
|
|
||||||
#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
|
||||||
RUN yarn install --ignore-engines --verbose
|
RUN yarn install --verbose
|
||||||
RUN yarn cache clean
|
|
||||||
# Copy the application code
|
# Copy the application code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the Vite application
|
# Build the Vite application
|
||||||
RUN npm run build
|
#RUN npm run build
|
||||||
#RUN node --max-old-space-size=4096 ./node_modules/.bin/vite build
|
RUN node --max-old-space-size=4096 ./node_modules/.bin/vite build
|
||||||
|
|
||||||
# Stage 2: Create the runtime image
|
# Stage 2: Create the runtime image
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user