mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-16 23:02:04 +00:00
fix: serve inspector assets under /ui/ path
This commit is contained in:
parent
6d6f6d0272
commit
eee56bada5
1 changed files with 2 additions and 2 deletions
|
|
@ -23,12 +23,12 @@ COPY frontend/packages/inspector ./frontend/packages/inspector
|
||||||
RUN cd frontend/packages/inspector && pnpm exec vite build
|
RUN cd frontend/packages/inspector && pnpm exec vite build
|
||||||
|
|
||||||
FROM caddy:alpine
|
FROM caddy:alpine
|
||||||
COPY --from=build /app/frontend/packages/inspector/dist /srv
|
COPY --from=build /app/frontend/packages/inspector/dist /srv/ui
|
||||||
RUN cat > /etc/caddy/Caddyfile <<'EOF'
|
RUN cat > /etc/caddy/Caddyfile <<'EOF'
|
||||||
:80 {
|
:80 {
|
||||||
root * /srv
|
root * /srv
|
||||||
file_server
|
file_server
|
||||||
try_files {path} /index.html
|
try_files {path} /ui/index.html
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue