Logo
Explore Help
Sign In
kaezhou/iloom-flatten
1
0
Fork 0
You've already forked iloom-flatten
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
iloom-flatten/Dockerfile

13 lines
360 B
Docker
Raw Normal View History

refactor: replace Supabase SDK with self-hosted REST API client layer WHY: migrating from Supabase BaaS to self-hosted iloom backend (Go microservices) deployed on K3s. Supabase client and realtime subscriptions no longer applicable. HOW: - add src/api/ layer (client.ts, auth.ts, purchaser.ts, textile.ts, washing.ts, websocket.ts) targeting iloom-gateway REST endpoints - rewrite all hooks (usePlanData, useInventoryData, useDashboardData, useRealtime, etc.) to use new API client instead of Supabase queries - rewrite all page/component data fetching and mutations accordingly - delete src/supabase/client.ts, remove @supabase/supabase-js dep - add Dockerfile (multi-stage node build + nginx) and nginx.conf with reverse proxy to iloom-gateway for /api/ and /ws/ routes - adjust webpack.config.js for API_URL environment variable injection Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-14 12:38:47 +08:00
FROM node:20-alpine AS builder
WORKDIR /app
COPY iloom-flatten/package.json iloom-flatten/package-lock.json ./
RUN npm ci --legacy-peer-deps
COPY iloom-flatten/ .
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY iloom-flatten/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 3015
CMD ["nginx", "-g", "daemon off;"]
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 26ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API