-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (12 loc) · 718 Bytes
/
Copy pathDockerfile
File metadata and controls
19 lines (12 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
# 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 main:app --host 0.0.0.0 --port ${PORT:-8000} 2>&1"]