fix(api): package /content into the image so npc content resolves
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
.claude
|
.claude
|
||||||
client
|
client
|
||||||
content
|
content
|
||||||
|
!content
|
||||||
docs/*
|
docs/*
|
||||||
!docs/schemas
|
!docs/schemas
|
||||||
**/__pycache__
|
**/__pycache__
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
COPY api/app ./app
|
COPY api/app ./app
|
||||||
COPY api/prompts ./prompts
|
COPY api/prompts ./prompts
|
||||||
COPY docs/schemas ./schemas
|
COPY docs/schemas ./schemas
|
||||||
|
COPY content ./content
|
||||||
|
|
||||||
# Run as non-root.
|
# Run as non-root.
|
||||||
RUN useradd --create-home --uid 1000 appuser
|
RUN useradd --create-home --uid 1000 appuser
|
||||||
|
|||||||
@@ -26,5 +26,6 @@ services:
|
|||||||
- ./api/app:/app/app:ro
|
- ./api/app:/app/app:ro
|
||||||
- ./api/prompts:/app/prompts:ro
|
- ./api/prompts:/app/prompts:ro
|
||||||
- ./docs/schemas:/app/schemas:ro
|
- ./docs/schemas:/app/schemas:ro
|
||||||
|
- ./content:/app/content:ro
|
||||||
command: >
|
command: >
|
||||||
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|
||||||
|
|||||||
Reference in New Issue
Block a user