2025-01-24 09:48:42: merge [main:cf1209562ae3ac7c0754e92b429b52c9a126d004];
This commit is contained in:
1 parent
e7b680aeb1
commit
eb8e1683fb
24 files changed
+1574
-192
No files matched your search
+3
-4
@@ -3,13 +3,12 @@ ARG NODE_VERSION=lts
|
||||
FROM node:${NODE_VERSION}-alpine as base
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
FROM base as deps
|
||||
|
||||
RUN --mount=type=bind,source=package.json,target=package.json \
|
||||
--mount=type=bind,source=package-lock.json,target=package-lock.json \
|
||||
--mount=type=cache,target=/root/.npm \
|
||||
npm ci --omit=dev
|
||||
npm ci --legacy-peer-deps --omit=dev
|
||||
|
||||
FROM deps as build
|
||||
|
||||
@@ -23,6 +22,6 @@ RUN npm run build
|
||||
|
||||
FROM nginx:alpine-slim as final
|
||||
RUN rm -f /etc/nginx/conf.d/default.conf
|
||||
COPY cfg/80_isp-admin-ui.conf /etc/nginx/conf.d/80_isp-admin-ui.conf
|
||||
COPY --from=build /usr/src/app/build /opt/msp/isp-admin-ui
|
||||
|
||||
COPY cfg/8002_isp-stress-ui.conf /etc/nginx/conf.d/8002_isp-stress-ui.conf
|
||||
COPY --from=build /usr/src/app/build /opt/msp/isp-stress-ui
|
||||
Reference in new issue
Block a user