Files
vultr-api/server/Dockerfile
HWANG BYUNGHA 184054c6c1 Initial commit: Vultr API v2 Python wrapper with FastAPI server
- 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>
2026-01-22 01:08:17 +09:00

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"]