feat: add Dockerfile and docker-compose for containerized deployment#172
Open
fengxiaozi-liu wants to merge 1 commit intoshareAI-lab:mainfrom
Open
feat: add Dockerfile and docker-compose for containerized deployment#172fengxiaozi-liu wants to merge 1 commit intoshareAI-lab:mainfrom
fengxiaozi-liu wants to merge 1 commit intoshareAI-lab:mainfrom
Conversation
|
@fengxiaozi-liu is attempting to deploy a commit to the crazyboym's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Summary
Adds Docker support so the project can be run in a containerized environment.
Changes
Dockerfile: Multi-stage build that compiles the Next.js web frontend and sets up the Python agents runtime. Supports three usage modes:
docker build -t learn-claude-code . && docker run -p 3000:3000 --env-file .env learn-claude-codedocker run --env-file .env learn-claude-code python agents/s_full.pydocker-compose.yml: Orchestrates the full stack with three services:
web: Next.js frontend on port 3000agents: Python agents (default entrypoint: `python agents/s_full.py`)jupyter(optional): Jupyter notebook on port 8888.dockerignore: Keeps the image clean by excluding build artifacts, cache, and sensitive files.
Usage
cp .env.example .env # Fill in ANTHROPIC_API_KEY in .env docker-compose up -dThen open https://localhost:3000.