Files
coremarket/Dockerfile
T
davidandClaude Opus 5.5 1bb2a299c7 Add Coremarket: Federated Core VM sizing and cloud pricing app
Dockerised FastAPI web app that sizes a VM for a selection of Federated
Computer apps (Base/Good/Better/Best tiers or custom) and prices it across
14 cloud providers and ~250 regions, grouped by continent.

- Sizing model per app with shared databases, headroom and disk growth
- Live pricing from Vultr, Akamai/Linode and Azure (DigitalOcean and
  Hetzner with tokens); dated catalog for the rest
- Hand-maintained Contabo price sheet with editor and table paste,
  including the one-time setup fee
- HIPAA/SOC2/PCI DSS/GDPR status, SMTP port 25, IPv4 and egress notes
- Estimated latency to 40 cities, real RTT via Globalping probes
- Versioned REST API (/api/v1) with OpenAPI docs and CSV export
- Accounts with admin/user roles, first admin from ADMIN_USERNAME /
  ADMIN_PASSWORD, per-account API keys, SQLite storage

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:36:51 -07:00

12 lines
473 B
Docker

FROM python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 DATA_DIR=/data
WORKDIR /srv
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app ./app
RUN useradd -r -u 10001 coremarket && mkdir -p /data && chown coremarket /data
USER coremarket
EXPOSE 8080
HEALTHCHECK CMD python -c "import urllib.request;urllib.request.urlopen('http://127.0.0.1:8080/healthz')"
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]