Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docker Support and Optimize Port Configuration #4

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

CherryLover
Copy link

Add Docker Support and Optimize Port Configuration

Changes

This PR includes the following changes:

  1. Added Docker Support

    • Added Dockerfile for containerized deployment
    • Implemented multi-stage build to optimize image size
    • Configured production build and runtime environment
  2. Optimized Server Port Configuration

    • Added support for port configuration via environment variable
    • Maintained default port 3000 for backward compatibility
    • Fixed port type conversion issue
  3. Updated Documentation

    • Added port configuration instructions in README
    • Supplemented environment variables documentation

Testing

  1. Local Testing:

    # Using default port 3000
    npm run dev
    
    # Using custom port
    PORT=7788 npm run dev
  2. Docker Testing:

    # Build image
    docker build -t gemini-search .
    
    # Run with default port
    docker run -p 3000:3000 gemini-search
    
    # Run with custom port
    docker run -p 7788:7788 -e PORT=7788 gemini-search

Related Commits

  • 01a35c8: feat: add Dockerfile for containerization
  • cd0ceca: docs: update port configuration in README
  • 144b119: fix: add support for configurable port via environment variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant