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

Feature/add dockerfile and compose #29

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

Conversation

darwin757
Copy link

Description

This PR adds Docker support to enable containerized deployment of Open Operator. Users can now run the application in both development and production environments using Docker.

Changes

  • Add multi-stage Dockerfile for development and production environments
  • Add docker-compose.yml with environment variable support
  • Add Docker configuration variables to .env.example
  • Update documentation with Docker setup instructions
  • Add environment variable configuration for Docker deployment

Testing

✓ Verified Docker build process
✓ Tested environment variable configuration
✓ Tested development environment setup
✓ Verified documentation accuracy
⚠️ Limited testing of browser sessions due to Browserbase free tier restrictions

Additional Notes

The implementation provides a straightforward way to containerize the application while maintaining flexibility between development and production environments. The default target is set to 'development' for easier local development.

Note: Full testing of browser session functionality was limited due to Browserbase free tier restrictions on keep-alive sessions. Features requiring persistent sessions would need to be tested with a paid Browserbase subscription.

Related Issues

N/A

Add containerization support with multi-stage builds for both development and production environments.

- Add multi-stage Dockerfile with deps, development, builder, and runner stages
- Add docker-compose.yml with environment variable support and volume mounts
- Update README.md with Docker deployment instructions and environment setup
- Configure hot-reloading for development environment
- Add production-ready configuration with security best practices

This change allows developers to:
- Run the application consistently across different environments
- Choose between development and production modes via TARGET variable
- Maintain proper isolation of dependencies and build artifacts
- Use volume mounts for live code changes in development

Closes #<issue_number>
Add Docker environment variables to configuration examples:

- Add TARGET and NODE_ENV to .env.example
- Set development as default target in example configuration
- Update README to clarify correct target values for development mode

This helps developers properly configure their Docker environment
by providing clear examples of required variables and their values.
Copy link

vercel bot commented Feb 19, 2025

@darwin757 is attempting to deploy a commit to the browserbase Team on Vercel.

A member of the Team first needs to authorize it.

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