fix: Docker deployment - fix Dockerfiles, registry.py f-strings, Gateway app structure
This commit is contained in:
@@ -1,17 +1,22 @@
|
||||
# microDAO RBAC Dockerfile
|
||||
# microDAO RBAC Service Dockerfile
|
||||
FROM python:3.11-slim
|
||||
|
||||
LABEL maintainer="DAARION.city Team"
|
||||
LABEL description="microDAO RBAC - Role-based access control service"
|
||||
LABEL version="0.2.0"
|
||||
|
||||
WORKDIR /app
|
||||
WORKDIR /app/microdao
|
||||
|
||||
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY ../requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Install Python dependencies
|
||||
RUN pip install --no-cache-dir \
|
||||
fastapi==0.109.0 \
|
||||
uvicorn==0.27.0 \
|
||||
pydantic==2.5.3 \
|
||||
sqlalchemy==2.0.25
|
||||
|
||||
# Copy RBAC code
|
||||
COPY . .
|
||||
|
||||
EXPOSE 9200
|
||||
@@ -19,4 +24,4 @@ EXPOSE 9200
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://localhost:9200/health || exit 1
|
||||
|
||||
CMD ["python", "rbac_api.py", "--host", "0.0.0.0", "--port", "9200"]
|
||||
CMD ["python", "-m", "uvicorn", "rbac_api:app", "--host", "0.0.0.0", "--port", "9200"]
|
||||
|
||||
Reference in New Issue
Block a user