Skip to content

Commit 7836414

Browse files
committed
fix shell-ui-dockerfile
1 parent 26243d6 commit 7836414

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

shell-ui/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG NGINX_IMAGE_VERSION=1.18.0-alpine
1+
ARG NGINX_IMAGE_VERSION=1.28.0-alpine
22
ARG NODE_IMAGE_VERSION=20-alpine3.19
33

44
FROM node:${NODE_IMAGE_VERSION} AS build-step

shell-ui/conf/nginx.conf

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,9 @@ server {
2121
# text/html is always compressed by gzip module
2222

2323
root /usr/share/nginx/html;
24-
index index.html index.htm;
24+
index /shell/index.html;
2525

2626
location / {
27-
try_files $uri $uri/ /index.html;
28-
sub_filter </head>
29-
'</head><script language="javascript">window.shellUIRemoteEntryUrl = "/shell/remoteEntry.js"</script>';
30-
sub_filter_once on;
31-
27+
try_files $uri $uri/ /shell/index.html;
3228
}
3329
}

0 commit comments

Comments
 (0)