mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-11 03:12:55 +00:00
The backend image builds the web UI with scripts/build_frontend.sh and serves it through docsgpt/ui.py, so the standalone Compose file drops the frontend container. UI and API share port 7091, published on 127.0.0.1 unless DOCSGPT_BIND says otherwise. POSTGRES_PASSWORD is configurable, and an optional https profile puts Caddy in front of a public domain. docker-image-verify.yml starts the standalone stack on the image it built and checks the API, the UI, /config.js and a client-side route on one port.
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
# Build context for docsgpt/Dockerfile is the repository root, so the image can
|
|
# carry the `application` import alias next to the `docsgpt` package. Allow only
|
|
# what the image needs; everything else (docs, tests, venvs) stays out.
|
|
*
|
|
!docsgpt/
|
|
# Only the alias file: an upgraded checkout may still hold gitignored
|
|
# application/{inputs,indexes,vectors,.env} from the old layout.
|
|
!application/__init__.py
|
|
# The web UI's source and the script that builds it (the `ui` stage).
|
|
!frontend/
|
|
!scripts/build_frontend.sh
|
|
|
|
# Inside the package: caches, local runtime data and secrets never ship.
|
|
**/__pycache__/
|
|
**/*.py[cod]
|
|
docsgpt/.pytest_cache/
|
|
docsgpt/.ruff_cache/
|
|
docsgpt/.coverage
|
|
docsgpt/htmlcov/
|
|
docsgpt/*.log
|
|
docsgpt/indexes/
|
|
docsgpt/inputs/
|
|
docsgpt/vectors/
|
|
docsgpt/*.faiss
|
|
docsgpt/*.pkl
|
|
docsgpt/.env
|
|
docsgpt/.env.*
|
|
docsgpt/Dockerfile
|
|
# A local UI build stays out: the `ui` stage builds the one the image serves.
|
|
docsgpt/static/
|
|
|
|
# Inside the frontend: installed packages and local builds are redone in the
|
|
# `ui` stage, and local VITE_* overrides must not be baked into a published image.
|
|
frontend/node_modules/
|
|
frontend/dist/
|
|
frontend/.env.local
|
|
frontend/.env.*.local
|
|
frontend/*.log
|
|
# The frontend image's own build files; changing them must not rebuild this UI.
|
|
frontend/Dockerfile
|
|
frontend/.dockerignore
|
|
frontend/docker/
|