Sign inSign up

kubeskills/reflex-frontend

By kubeskills

β€’Updated over 1 year ago

NGINX-based container image that serves the statically exported frontend of a Reflex application

Image
Networking
0

110

kubeskills/reflex-frontend repository overview

⁠🌐 kubeskills/reflex-frontend

A minimal, high-performance NGINX image serving the statically exported frontend of a Reflex⁠ app. Built for Kubernetes deployments and SPA-friendly routing.


β πŸ”Ή Features

  • Serves precompiled HTML/JS/CSS from Reflex export
  • Compatible with Traefik, NGINX Ingress, or Gateway API
  • Supports single-page app fallback (index.html)
  • Lightweight and production-ready (based on nginx:alpine)

β πŸ“ Static File Layout

  • index.html: app entrypoint
  • 404.html: custom not-found page
  • sitemap.xml, favicon.ico, and _next/ assets
  • __spa-fallback.html: used as base fallback for Reflex SPA routing

β πŸ› οΈ Ports

  • 80 β€” default HTTP port served by NGINX

⁠🐳 Example docker run

docker run -p 8080:80 kubeskills/reflex-frontend:latest

Visit: http://localhost:8080⁠


⁠☸️ Kubernetes Deployment Example

apiVersion: apps/v1
kind: Deployment
metadata:
  name: reflex-frontend
spec:
  replicas: 2
  selector:
    matchLabels:
      app: reflex-frontend
  template:
    metadata:
      labels:
        app: reflex-frontend
    spec:
      containers:
        - name: frontend
          image: kubeskills/reflex-frontend:latest
          ports:
            - containerPort: 80
          resources:
            requests:
              cpu: 50m
              memory: 64Mi
            limits:
              cpu: 100m
              memory: 128Mi

β βœ… Built With

Tag summary

Content type

Image

Digest

sha256:ea8cf0d60…

Size

22.1 MB

Last updated

over 1 year ago

docker pull kubeskills/reflex-frontend