Extension Platform: API server + React dashboard

- Python API server with Gitea-based build (no local files needed)
- PostgreSQL on Coolify internal network
- React + Vite + Tailwind dashboard
- Endpoints: /publish, /deploy, /deploy-all, /api/*
- Dockerfile: multi-stage (Node build + Python runtime)
This commit is contained in:
2026-03-26 04:53:01 +00:00
commit 5e0e5f1066
20 changed files with 3904 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM node:20-alpine AS dashboard-build
WORKDIR /dashboard
COPY dashboard/package*.json ./
RUN npm ci
COPY dashboard/ .
RUN npm run build
FROM python:3.12-alpine
RUN apk add --no-cache postgresql-client
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY server.py .
COPY --from=dashboard-build /dashboard/dist /app/dashboard/dist
ENV PORT=8080
ENV DIST_DIR=/app/dashboard/dist
EXPOSE 8080
CMD ["python", "server.py"]