All checks were successful
Build + Deploy / build-admin-compliance (push) Successful in 1m36s
Build + Deploy / build-backend-compliance (push) Successful in 2m55s
Build + Deploy / build-ai-sdk (push) Successful in 47s
Build + Deploy / build-developer-portal (push) Successful in 58s
Build + Deploy / build-tts (push) Successful in 1m13s
Build + Deploy / build-document-crawler (push) Successful in 36s
Build + Deploy / build-dsms-gateway (push) Successful in 27s
CI / branch-name (push) Has been skipped
CI / guardrail-integrity (push) Has been skipped
CI / loc-budget (push) Successful in 15s
CI / secret-scan (push) Has been skipped
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / nodejs-build (push) Successful in 2m27s
CI / sbom-scan (push) Has been skipped
CI / dep-audit (push) Has been skipped
CI / test-go (push) Successful in 39s
CI / test-python-backend (push) Successful in 37s
CI / test-python-document-crawler (push) Successful in 28s
CI / test-python-dsms-gateway (push) Successful in 19s
CI / validate-canonical-controls (push) Successful in 13s
Build + Deploy / trigger-orca (push) Successful in 2m32s
Das Refactoring hat main.py in models.py, routers/, config.py und dependencies.py aufgesplittet — das Dockerfile kopierte aber nur main.py. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
33 lines
868 B
Docker
33 lines
868 B
Docker
# DSMS Gateway - REST API für dezentrales Speichersystem
|
|
FROM python:3.11-slim
|
|
|
|
LABEL maintainer="BreakPilot <dev@breakpilot.app>"
|
|
LABEL description="DSMS Gateway - REST API wrapper for IPFS"
|
|
|
|
WORKDIR /app
|
|
|
|
# Install curl for healthcheck and dependencies
|
|
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install Python dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy application
|
|
COPY . .
|
|
|
|
# Environment variables
|
|
ENV IPFS_API_URL=http://dsms-node:5001
|
|
ENV IPFS_GATEWAY_URL=http://dsms-node:8080
|
|
ENV PORT=8082
|
|
|
|
# Expose port
|
|
EXPOSE 8082
|
|
|
|
# Health check
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|
CMD curl -f http://localhost:8082/health || exit 1
|
|
|
|
# Run application
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8082"]
|