Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@ FROM python:3.13-slim

WORKDIR /app

COPY backend/requirements.txt ./

# Install dependencies only (not the project package itself)
RUN pip install --no-cache-dir -r requirements.txt

# Copy source code — used directly via PYTHONPATH
COPY backend/src ./src
COPY backend/pyproject.toml ./

RUN pip install --no-cache-dir .
# Make all modules under src/ importable as top-level names
# This matches the local development setup (src/ on sys.path)
ENV PYTHONPATH=/app/src

EXPOSE 8000

CMD ["sh", "-c", "NEO4J_URI=${NEO4J_URI:-bolt://localhost:7687} NEO4J_USERNAME=${NEO4J_USERNAME:-neo4j} NEO4J_PASSWORD=${NEO4J_PASSWORD:-test} QDRANT_URL=${QDRANT_URL:-http://localhost:6333} REDIS_URL=${REDIS_URL:-redis://localhost:6379} uvicorn src.main:app --host 0.0.0.0 --port ${PORT:-8000}"]
CMD ["sh", "-c", "NEO4J_URI=${NEO4J_URI:-bolt://localhost:7687} NEO4J_USERNAME=${NEO4J_USERNAME:-neo4j} NEO4J_PASSWORD=${NEO4J_PASSWORD:-test} QDRANT_URL=${QDRANT_URL:-http://localhost:6333} REDIS_URL=${REDIS_URL:-redis://localhost:6379} uvicorn main:app --host 0.0.0.0 --port ${PORT:-8000} 2>&1"]
Loading