fix: update docker references

This commit is contained in:
kritik.b 2026-04-16 01:04:15 +05:30
parent 73a223bae6
commit 3504945367
5 changed files with 18 additions and 8 deletions

View file

@ -1,3 +1,3 @@
IMAGE_NAME=ghcr.io/abhigyanpatwari/gitnexus-web:latest
CONTAINER_NAME=gitnexus-web
IMAGE_NAME=ghcr.io/abhigyanpatwari/gitnexus:latest
CONTAINER_NAME=gitnexus
HOST_PORT=4173

View file

@ -20,6 +20,8 @@ RUN npm run build --prefix gitnexus-web
FROM node:20-bookworm-slim AS runtime
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=builder /app/gitnexus-web/dist ./dist

View file

@ -339,9 +339,9 @@ npm run dev
```bash
docker run --rm \
--name gitnexus-web \
--name gitnexus \
-p 4173:4173 \
ghcr.io/abhigyanpatwari/gitnexus-web:latest
ghcr.io/abhigyanpatwari/gitnexus:latest
```
Or with Docker Compose:
@ -361,7 +361,7 @@ set +a
Docker files:
- [Dockerfile](Dockerfile) is the source for the published `gitnexus-web` image. It builds `gitnexus-shared` and `gitnexus-web`, then runs the app directly with Vite preview.
- [Dockerfile](Dockerfile) is the source for the published `gitnexus` image. It builds `gitnexus-shared` and `gitnexus-web`, then serves the production frontend.
- [docker-compose.yaml](docker-compose.yaml) starts the published image with Docker Compose.
- [.env.example](.env.example) sets the image name, container name, and exposed port for the example commands.
@ -369,7 +369,7 @@ Notes:
- The published image serves the production frontend only. It does not start `gitnexus serve`.
- In backend mode, the app still defaults to `http://localhost:4747` unless you change the server URL in the UI.
- If you do not want an env file, the defaults are `ghcr.io/abhigyanpatwari/gitnexus-web:latest`, container name `gitnexus-web`, and port `4173`.
- If you do not want an env file, the defaults are `ghcr.io/abhigyanpatwari/gitnexus:latest`, container name `gitnexus`, and port `4173`.
The web UI uses the same indexing pipeline as the CLI but runs entirely in WebAssembly (Tree-sitter WASM, LadybugDB WASM, in-browser embeddings). It's great for quick exploration but limited by browser memory for larger repos.

View file

@ -1,7 +1,13 @@
services:
gitnexus-web:
gitnexus:
image: ${IMAGE_NAME:-ghcr.io/abhigyanpatwari/gitnexus:latest}
container_name: ${CONTAINER_NAME:-gitnexus-web}
container_name: ${CONTAINER_NAME:-gitnexus}
ports:
- "${HOST_PORT:-4173}:4173"
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4173/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s

View file

@ -54,6 +54,8 @@ const server = createServer(async (req, res) => {
res.writeHead(200, {
'Cache-Control': filePath.includes('/assets/') ? 'public, max-age=31536000, immutable' : 'no-cache',
'Content-Type': contentTypes[extname(filePath)] || 'application/octet-stream',
'Cross-Origin-Opener-Policy': 'same-origin',
'Cross-Origin-Embedder-Policy': 'require-corp',
});
createReadStream(filePath).pipe(res);
} catch (error) {