File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22FROM node:lts-alpine as build-stage
33WORKDIR /app
44COPY package*.json ./
5- ENV VITE_APP_PUBLIC_PATH <PUBLIC_PATH_REPLACE>
5+ ENV VITE_APP_PUBLIC_PATH __PUBLIC_PATH_REPLACE__
66RUN npm install
77COPY . .
88RUN npm run build
Original file line number Diff line number Diff line change 22set -e
33: " ${UI_PUBLIC_PATH:= } "
44
5- sed -i " s@/<PUBLIC_PATH_REPLACE> @$UI_PUBLIC_PATH @g" /usr/share/nginx/html/index.html
6- sed -i " s@/<PUBLIC_PATH_REPLACE> @$UI_PUBLIC_PATH @g" /usr/share/nginx/html/assets/index* .js
7- sed -i " s@/<PUBLIC_PATH_REPLACE> @$UI_PUBLIC_PATH @g" /usr/share/nginx/html/assets/index* .css
5+ sed -i " s@/__PUBLIC_PATH_REPLACE__ @$UI_PUBLIC_PATH @g" /usr/share/nginx/html/index.html
6+ sed -i " s@/__PUBLIC_PATH_REPLACE__ @$UI_PUBLIC_PATH @g" /usr/share/nginx/html/assets/index* .js
7+ sed -i " s@/__PUBLIC_PATH_REPLACE__ @$UI_PUBLIC_PATH @g" /usr/share/nginx/html/assets/index* .css
You can’t perform that action at this time.
0 commit comments