Skip to content

feat: add Dockerfile for static Flux frontend#575

Draft
HexaField wants to merge 1 commit into
devfrom
feat/docker-image
Draft

feat: add Dockerfile for static Flux frontend#575
HexaField wants to merge 1 commit into
devfrom
feat/docker-image

Conversation

@HexaField

Copy link
Copy Markdown
Contributor

Multi-stage Docker build that compiles Flux into a static SPA served by nginx. Connect to an AD4M executor via ad4m-connect's remote node UI.

Files added

  • Dockerfile — multi-stage build (Node 20 builder → nginx:alpine runtime)
  • nginx.conf — SPA routing with static asset caching
  • .dockerignore — excludes node_modules, .git, dist, .turbo

Usage

docker build -t flux .
docker run -p 8080:80 flux

Multi-stage Docker build that compiles Flux into a static SPA served by nginx.
- Stage 1: Node 20 builder with Yarn workspaces + Turborepo
- Stage 2: nginx:alpine serving the built app/dist/ output
- SPA routing via try_files fallback to index.html
- Static asset caching with 1y expiry
@coderabbitai

coderabbitai Bot commented Mar 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 54a60dbc-a352-46c0-99c6-b346bc5359c7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/docker-image

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@netlify

netlify Bot commented Mar 27, 2026

Copy link
Copy Markdown

Deploy Preview for fluxsocial-dev ready!

Name Link
🔨 Latest commit 4510c61
🔍 Latest deploy log https://app.netlify.com/projects/fluxsocial-dev/deploys/69c6459230976e0008ec1c38
😎 Deploy Preview https://deploy-preview-575--fluxsocial-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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