Skip to content

Added Docker support for UI component #201

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

Closed
wants to merge 2 commits into from

Conversation

Mpasha17
Copy link
Contributor

Description

This PR adds Docker support for the UI component, making it easier to run the complete Morphik stack in a containerized environment.

Changes

  • Added a new Dockerfile for the UI component in ee/ui-component/Dockerfile
  • Updated docker-compose.yml to include the UI service
  • Configured proper networking between UI and backend services
  • Added environment variables for API communication

Technical Details

  • Uses Node.js 23.11.0 Alpine as the base image for smaller footprint
  • Implements multi-stage build to optimize the final image size
  • Configures proper environment variables for production
  • Sets up health checks and service dependencies

Testing

The changes have been tested by:

  • Building and running the complete stack locally
  • Verifying UI-backend communication
  • Testing the production build process

Copy link

jazzberry-ai bot commented Jun 15, 2025

Bug Report

Name Severity Example test case Description
Incorrect CMD in UI Dockerfile High Build the UI Docker image and run it. The UI will not start because the server.js file does not exist in the root directory in standalone mode. The CMD instruction in the ee/ui-component/Dockerfile is incorrect. It should point to the server.js file in the .next/standalone directory, e.g., CMD ["node", ".next/standalone/server.js"].

Comments? Email us.

@Adityav369
Copy link
Collaborator

Added UI support in docker by default

@Adityav369 Adityav369 closed this Aug 14, 2025
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.

2 participants