8000 Add Docker Support and Optimize Port Configuration by CherryLover · Pull Request #4 · ammaarreshi/Gemini-Search · GitHub
[go: up one dir, main page]

Skip to content

Add Docker Support and Optimize Port Configuration - #4

Open
CherryLover wants to merge 6 commits into
ammaarreshi:mainfrom
CherryLover:main
Open

CherryLover wants to merge 6 commits into
ammaarreshi:mainfrom
CherryLover:main

Conversation

@CherryLover
Copy link
Copy Markdown

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

0