MSP-6791 add support public-path
This commit is contained in:
1 parent
8c9531010c
commit
b04b790a4d
8 files changed
+55
-24
No files matched your search
+7
-4
@@ -1,5 +1,5 @@
|
||||
ARG NODE_VERSION=lts
|
||||
|
||||
ARG PUBLIC_PATH=/
|
||||
FROM node:${NODE_VERSION}-alpine as base
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
@@ -22,9 +22,12 @@ COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine-slim as final
|
||||
|
||||
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