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:
+18
@@ -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"]
|
||||
Reference in New Issue
Block a user