- vultr_api/: Python library wrapping Vultr API v2 - 17 resource modules (instances, dns, firewall, vpc, etc.) - Pagination support, error handling - server/: FastAPI REST server - All API endpoints exposed via HTTP - X-API-Key header authentication - Swagger docs at /docs - Podman quadlet config for systemd deployment Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
330 B
Docker
19 lines
330 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir fastapi uvicorn requests pydantic
|
|
|
|
# Copy vultr_api library
|
|
COPY vultr_api/ /app/vultr_api/
|
|
|
|
# Copy server code
|
|
COPY server/ /app/
|
|
|
|
# Expose port
|
|
EXPOSE 8000
|
|
|
|
# Run server
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|