5e0e5f1066
- 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)
19 lines
459 B
Docker
19 lines
459 B
Docker
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"]
|