Skip to content

feat: containerize frontend for compose deployment - #146

Open
shatakshisgtiwari-jpg wants to merge 1 commit into
fossology:mainfrom
shatakshisgtiwari-jpg:feat/containerized-frontend
Open

shatakshisgtiwari-jpg wants to merge 1 commit into
fossology:mainfrom
shatakshisgtiwari-jpg:feat/containerized-frontend

Conversation

@shatakshisgtiwari-jpg

Copy link
Copy Markdown

Summary

Containerize the LicenseDB frontend for Docker Compose deployments.

  • Add a multi-stage Docker image:
    • Node.js builds the React/Vite application with npm ci.
    • Nginx serves the generated static files.
  • Add an Nginx configuration that:
    • Serves the SPA and supports client-side routing.
    • Proxies /api/v1/ requests to the Compose backend service licensedb.
    • Resolves the backend through Docker’s internal DNS at runtime.
  • Add .dockerignore to exclude local dependencies, generated output, local environment files, and Git metadata from the image build context.
  • Update .gitignore to ignore .env.local while allowing the tracked package-lock.json required by npm ci.

@shatakshisgtiwari-jpg
shatakshisgtiwari-jpg force-pushed the feat/containerized-frontend branch from 939205f to a6cfb7f Compare October 16, 2026 07:16
Signed-off-by: Shatakshi Tiwari <shatakshisgtiwari@gmail.com>
@shatakshisgtiwari-jpg
shatakshisgtiwari-jpg force-pushed the feat/containerized-frontend branch from a6cfb7f to 60392bd Compare November 2, 2026 06:07
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