Update Dockerfile-web-ui-dev to use Node 18.16.0 and Alpine 3.17.2

This commit is contained in:
2025-02-01 21:36:57 +07:00
parent 4051c530ea
commit 1bc790596f

View File

@@ -1,12 +1,10 @@
ARG NODE_VERSION=18.16.0
ARG NODE_VERSION=17 ARG ALPINE_VERSION=3.17.2
ARG ALPINE_VERSION=3.19.0
FROM node:${NODE_VERSION}-alpine AS node FROM node:${NODE_VERSION}-alpine AS node
FROM alpine:${ALPINE_VERSION} AS builder FROM alpine:${ALPINE_VERSION}
# Set the working directory in the container # Set the working directory in the container
WORKDIR /app WORKDIR /app
@@ -30,8 +28,9 @@ RUN apk update && apk add --no-cache git
RUN rm -f /usr/local/bin/yarn /usr/local/bin/yarnpkg RUN rm -f /usr/local/bin/yarn /usr/local/bin/yarnpkg
# Install Yarn globally # Install Yarn globally
RUN npm install -g yarn RUN npm install -g yarn --force
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