2025-12-01 18:39:15: merge [main:2e9661ab84bddf9f54dbd9c9660b990d65ce92a5];
This commit is contained in:
1 parent
20c8f58a77
commit
239634454b
9 files changed
+65
-28
No files matched your search
+8
-4
@@ -1,5 +1,4 @@
|
||||
ARG NODE_VERSION=lts
|
||||
|
||||
FROM node:${NODE_VERSION}-alpine as base
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
@@ -19,12 +18,17 @@ RUN --mount=type=bind,source=package.json,target=package.json \
|
||||
npm ci
|
||||
|
||||
COPY . .
|
||||
ARG PUBLIC_PATH=/
|
||||
ENV PUBLIC_PATH=$PUBLIC_PATH
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine-slim as final
|
||||
ARG PUBLIC_PATH=/
|
||||
ENV PUBLIC_PATH=$PUBLIC_PATH
|
||||
|
||||
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 --from=build /usr/src/app/build /opt/msp/isp-admin-ui${PUBLIC_PATH}/
|
||||
|
||||
COPY entrypoint.sh /opt/msp/isp-admin-ui/entrypoint.sh
|
||||
ENTRYPOINT ["/opt/msp/isp-admin-ui/entrypoint.sh"]
|
||||
COPY entrypoint.sh /opt/msp/isp-admin-ui${PUBLIC_PATH}/entrypoint.sh
|
||||
ENTRYPOINT sh -c "/opt/msp/isp-admin-ui${PUBLIC_PATH}/entrypoint.sh"
|
||||
Reference in new issue
Block a user