- FastAPI app med 7 bundled module-typer (proxmox, esxi, truenas, splunk, linux, windows, http-json) - Multi-instance support: flere instanser af samme modultype med adskilte assets - Community/Enterprise licensing med admin enterprise-toggle - Capacity forecasting, trends, what-if simulator, alert policies - MCP server + LLM copilot integration - Dockerfile + rune.yaml til Yggdrasil
24 lines
626 B
Docker
24 lines
626 B
Docker
FROM python:3.11-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
HEADROOM_DATA=/data \
|
|
HEADROOM_MODULES=/app/modules
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY app ./app
|
|
COPY modules ./modules
|
|
COPY ctlpanel-logo ./ctlpanel-logo
|
|
|
|
RUN mkdir -p /data && chmod 777 /data 2>/dev/null || true
|
|
|
|
EXPOSE 8787
|
|
|
|
CMD ["sh", "-c", "exec python -m uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-${WEB_PORT:-${HEADROOM_PORT:-8787}}} --workers 1"]
|