fix(docker): Update Dockerfile paths from src/ to v1/src/

The source code was moved to v1/src/ but the Dockerfile still
referenced src/ directly, causing build failures. Updated all
COPY paths, uvicorn module paths, test paths, and bandit scan
paths. Also added missing v1/__init__.py for Python module
resolution.

Fixes #33

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
ruv
2026-02-28 13:38:21 -05:00
parent f460097a2f
commit 7872987ee6
45 changed files with 358 additions and 7992 deletions

View File

@@ -53,14 +53,14 @@ USER appuser
EXPOSE 8000
# Development command
CMD ["uvicorn", "src.api.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
CMD ["uvicorn", "v1.src.api.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
# Production stage
FROM base as production
# Copy only necessary files
COPY requirements.txt .
COPY src/ ./src/
COPY v1/src/ ./v1/src/
COPY assets/ ./assets/
# Create necessary directories
@@ -79,16 +79,16 @@ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
EXPOSE 8000
# Production command
CMD ["uvicorn", "src.api.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"]
CMD ["uvicorn", "v1.src.api.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"]
# Testing stage
FROM development as testing
# Copy test files
COPY tests/ ./tests/
COPY v1/tests/ ./v1/tests/
# Run tests
RUN python -m pytest tests/ -v
RUN python -m pytest v1/tests/ -v
# Security scanning stage
FROM production as security
@@ -99,6 +99,6 @@ RUN pip install --no-cache-dir safety bandit
# Run security scans
RUN safety check
RUN bandit -r src/ -f json -o /tmp/bandit-report.json
RUN bandit -r v1/src/ -f json -o /tmp/bandit-report.json
USER appuser