Add Docker one-command demo (issue #4) - #11
Open
hnet158158 wants to merge 2 commits into
Open
Conversation
- Dockerfile: multi-stage (base → api/ui), uses uv for fast install - docker-compose.yml: two services (api + ui) with healthcheck - .dockerignore: exclude dev/cache/docs from build context One-command: docker compose up Starts FastAPI at :8000 and Streamlit UI at :8501
- libgl1-mesa-glx → libgl1 (Debian Bookworm renamed) - Add COPY README.md ./ before uv sync (hatchling requires it) - Verified: docker build --target api + ui both succeed - Verified: docker compose up — both API (:8000) and UI (:8501) respond 200
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Adds a Docker-based one-command demo that runs both the FastAPI backend and the Streamlit review UI with the sample corpus.
Closes #4
Files added / changed
Dockerfile(new)Multi-stage build using
uvfor fast dependency installation:baseuv.lock, installs third-party deps, copies source + README, installs projectapiuvicorn:8000uistreamlit:8501docker-compose.yml(updated from empty stub)8000, healthchecked8501, depends on api healthy./samplesand./dataas volumes.dockerignore(new)Skips dev/cache/docs (except README.md needed by hatchling) from build context.
Usage
Then open:
Validation ✅
docker build --target basedocker build --target apidocker build --target uidocker compose up— API responds 200 on/docsdocker compose up— UI responds 200 on/